[Tex/LaTex] Fedora manual installation and dependencies

dependenciesinstallinglinuxrtexlive

Following answers on this website (like: How to use TeX Live on Fedora 17? and Manually installed TexLive on Fedora 16 )
I installed texlive manually on fedora and it works flawlessly.

The problem I have is that tex is a requisite for other packages (such as R). Whenever I try to install (through yum) R i am required to install another tex from fedora.

I don't want to do so because the package is old, it doesn't have tlmgr and I don't want to have two installed tex.

Is there a way to make the OS notice I already have tex installed and the dependency is satisfied?
Thanks!

Best Answer

While option 2 from the question in How to use TeX Live on Fedora 17? will solve this problem, you're probably trying to get around deficiencies in jnovy's TexLive repository. You want yum to think you have the proper packages installed, but it seems to go against yum's policy to provide a way to fake dependencies. You could try using a fake TexLive RPM spec file or fakeprovide.

Sample fake RPM spec file from the link:

Name: texlive2010-fake
Version: 1.0
Release: 1%{?dist}
Summary: This is a fake TeXLive package
Group: Applications/Publishing
License: GPLv2 and BSD and Public Domain and LGPLv2+ and GPLv2+ and LPPL
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

Provides: config(texlive)
Provides: kpathsea libkpathsea.so.4()
Provides: tetex tetex-dvips tetex-fonts tetex-latex tex
Provides: tex(dvips) tex(latex) tex(tex) tex-preview texinfo-tex
Provides: texlive texlive-afm texlive-context texlive-doc texlive-doc-errata
Provides: texlive-dvips texlive-dviutils texlive-east-asian texlive-fonts
Provides: texlive-texmf texlive-latex texlive-utils texlive-xetex
Provides: texlive-texmf-afm texlive-texmf-context texlive-texmf-doc texlive-texmf-dvips
Provides: texlive-texmf-errata texlive-texmf-errata-afm texlive-texmf-errata-context
Provides: texlive-texmf-errata-doc texlive-texmf-errata-dvips texlive-texmf-errata-east-asian
Provides: texlive-texmf-errata-fonts texlive-texmf-errata-latex texlive-texmf-errata-xetex
Provides: texlive-texmf-fonts texlive-texmf-latex texlive-texmf-xetex


%description
This was necessary to have a tlmgr-based installation of texlive and all the
rpm packages that requires texlive (e.g., a2ps and R-core) still installable.

%prep

%build

%install
rm -rf $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc

%changelog

To install:

  1. rpmdev-setuptree (as a normal user) to create the necessary ~/rpmbuild tree
  2. rpmbuild -bb --clean texlive2010-fake.spec to create the RPM
  3. yum install --nogpgcheck texlive2010-fake-1.0-1.fc17.x86_64.rpm to install the RPM