6

I installed texlive 2016 on my ubuntu 16.04 and everything works fine. Now when I try to install an editor (like kile, texmaker, texstudio, etc.) through apt-get install I'm forced to install texlive packages from ubuntu, as if I didn't have texlive already... How can I manage to just install a tex editor without installing texlive ?

  • Could you please let us know the exact commands you are using to install the LaTeX GUI? Are you sure the texlive is already installed completely? What are the additional packages which you are forced to install? – Masroor Feb 26 '17 at 0:53
  • 1
    Apt has an equivs package, which you can use to circumvent the Debian/Ubuntu package dependencies. See Integrating vanilla TeX Live with Debian (scroll down to that heading). – jon Feb 26 '17 at 1:08
  • You might also be using a package that's not on the standard texlive package. To download and install all of texlive you'd do apt-get install texlive-full – wolf_math Feb 26 '17 at 1:24
  • @wolf_math That's exactly what the OP is trying to avoid. – cfr Feb 26 '17 at 1:54
  • @Masroor here is what I did : I downloaded install-tl-unx.tar.gz, then I did sudo apt-get install perl-tk, then ./install-tl -gui=perltk. If I need to install additional packages I use tlmgr -gui. – crocefisso Feb 26 '17 at 8:42
6

As jon suggested, you can create a texlive dummy package using equivs and install it. That would satisfy the dependency requirements for any package that needs texlive*.

As I see texstudio does not have a dependency on texlive. So, to prevent apt from pulling in the extra packages, you can try installing it thus:

apt-get --no-install-recommends install texstudio

Edit: Following crocefisso's observation, including install in the command.

  • I don't remember how I did it (months ago), but it definitely can be done. On Ubuntu 16.04 I have TeXLive 2016 in my home folder, obtained directly from TeXLive, not the Ubuntu distro. And, I have TeXworks, via the Ubuntu distro. As I recall, it required some trickery. So have faith, OP, and follow the instructions given in the answers. – user103221 Feb 26 '17 at 3:03
  • @mas Thanks, it worked like a charm! It also works with texmaker and the other editors. You forgot install in your line : sudo apt-get install --no-install-recommends <package> – crocefisso Feb 26 '17 at 10:30
  • Oops. Nice catch. Glad it helped. – mas Feb 26 '17 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.