TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Debian/Ubuntu packages for TeXlive are usually outdated, sometimes up to several years behind CTAN. Now, I understand that

packaging TeX Live takes a lot of work

and, if you want to follow the latest developments, you essentially have to install from scratch (also here and here) using tlmgr and then create a "dummy" package (from tug.org).

Is anyone aware of efforts to automate this for Debian/Ubuntu? Once automated, this could be wrapped into an "installer package" (as seen for zotero, libflashplayer-plugin, nautilus-dropbox, ...). This installer package has a version and dependencies, but does not contain the files -- they are downloaded and installed in the "configure" step of dpkg. Wouldn't this be sweet:

apt-get install texlive-installer

gets you an up-to-date TeXlive with no need for manual updates (since the installer package will update the TeXlive installation on apt-get upgrade).

Advertisement: I have even pushed my own dummy package to a PPA, so that the next time I need to install a new machine I don't have to redo this. (Hope I got the dependencies right...)

share|improve this question
There is an auto installer on the www.tug.org website. texenthusiast has referred to it and linked to it before in posts. – dustin May 16 '13 at 16:12
@dustin: Do you have a link? I can't seem to find it. I'm aware of tug.org/texlive/quickinstall.html, this question is about automating the process described there. – krlmlr May 16 '13 at 20:47
I was speaking of the quick install which you said you are aware of. – dustin May 16 '13 at 20:49

I have to disagree and advise with a few points:

  • Debian/wheezy contains TeX Live 2012, the latest released version of TeX Live
  • TeX Live 2013 prerelease will soon be uploaded the Debian/sid (maybe today if I manage it)
  • linking apt-get with tlmgr update as you suggested is a very bad idea, since by now tlmgr does not return proper error codes, which means that apt-get cannot know if it worked out properly or not
  • using the above outlined method you will loose integration of other Debian TeX related packages (though, I have to admit, TeX Live contains almost everything anyway)
  • you are not guaranteed to get running binaries for all systems

All this combined I (as Debian maintainer of the TeX packages and TeX Live tlmgr programmer) strongly advise against such a package. Of course everyone is free to publish whatever package there might be, but I am quite sure that it will not end up in Debian, at least.

share|improve this answer
Thanks for taking your time to comment on this. I do believe that it is a lot of work to create, maintain, and upgrade Debian packages for TeXlive. To me it sounds like a full-time job, especially if one wanted to ensure up-to-dateness -- unless the process of including a new package is highly automated, and even then... In this case, I'll try an automated solution of tug.org/texlive/quickinstall.html and a cron job that pulls upgrades on a regular basis. -- Would it be possible for you to add error code support to tlmgr? – krlmlr May 17 '13 at 7:59
Something else: Are you aware of cran2deb? The R folks do have a similar problem, and this project aims at providing a 1:1 translation from R packages to Debian packages. Would this be a feasible route for TeXlive? – krlmlr May 17 '13 at 8:01
@krlmlr: The TeXLive packages for OpenSUSE (rpms) have been split into 5k+ packages, so automation is possible. – Martin Schröder May 17 '13 at 17:13
@landroni yes I know, but tlmgr in Debian is permanently in "user mode", that means that it can manage your TEXMFHOME (or some other tree), but not the system tree. It is for the convenience of those who really need to update a few packages. Since it is in user mode, it has one big restriction: it can only install packages that only contain files in the texmf tree, thus no scripts or binaries. – norbert Jan 9 '15 at 0:04
@landroni yes, the files in TEXMFHOME override the files in the other trees, that means if you have frletter installed with tlmgr in user mode, then it will be used. But be aware, that once the system's copy is updated, even to a newer version than the one in your TEXMFHOME, still the version in your TEXMFHOME is used (and this is supposed to be like this). – norbert Jan 10 '15 at 12:38

The latest version of TeX Live (currently 2013) can be installed in Ubuntu with install-tl-ubuntu. The main advantage of this is that you get tlmgr and can update accordingly and apt is notified of the install so it will not try to install TeX Live packages that are already installed. Download installl-tl-ubuntu and run it as

sudo ./install-tl-ubuntu

No options need to be specified if what you want is a full TeX Live install. To download that script, run

wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu && chmod +x ./install-tl-ubuntu

Below I give the list of features from the GitHub repository

  • installs TeX Live 2013
    • automatically finds the fastest repository
    • gives updated progress of the install
    • restarts automatically if install fails
  • tlmgr can then be used to keep your install up-to-date
  • notifies apt so that apt does not try to install the Ubuntu texlive-* packages as dependencies (e.g. if you do sudo apt-get install lyx)
  • links to the folder where Ubuntu installs TeX files so that when you install Ubuntu packages (e.g. FoilTeX and noweb) with LaTeX files, they will be available
  • adds TeX Live fonts to be used system-wide
  • other font-related conveniences
    • tells AppArmor to allow Evince to access the TeX Live fonts
    • can install TrueType fonts that user provides (--truetype-dir)
    • can install IvriTeX Hebrew fonts (--hebrew)
  • optionally installs additional LaTeX files for common journals that are not included in TeX Live 2013 (--more-tex)
  • works non-interactively and thus can be added to a batch install script
  • tlmgr can be run from the desktop menu (if 'gksu' package is installed)
  • install can be done from an ISO file (--iso)

For more details, see

./install-tl-ubuntu --help
share|improve this answer
Can I see somewhere in for example synaptic how the locally installed Texlive satisfies the package dependencies? I have just installed TL2014 right now and it did not appear to interact with the apt system. I have used this approach to trick apt so far: tug.org/texlive/debian.html#vanilla – Thomas Arildsen Oct 1 '14 at 12:10
equivs is the only way I know of to trick apt. Anything else would be even more hackish and fragile, I think. – scottkosty Oct 1 '14 at 16:22
Yes, but what I mean is that I don't see this happening: "apt is notified of the install so it will not try to install TeX Live packages that are already installed". How is that supposed to work? – Thomas Arildsen Oct 2 '14 at 9:08
@ThomasArildsen That phrase is meant as a user-friendly way of explaining what equivs does. – scottkosty Oct 2 '14 at 15:31
Oh, I got the impression that it was supposed to happen automatically. I guess it's what I did then (dummy package as mentioned in @krlmlr's answer. – Thomas Arildsen Oct 2 '14 at 18:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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