Tuesday, September 17, 2013

All About Texlive in Lubuntu


It seems that using


sudo apt-get install texlive

is a bad idea. Rather use the procedure from the following link:
Following is a comprehensive guide for installing texlive in linux:

http://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-ubuntu


Now, this is very crucial if we want to avoid  recommended packages: this might be good for large doc files such as texlive-extra-doc etc

sudo apt-get --no-install-recommends install lyx


This is how to manually install a particular individual tex-live package:

http://tex.stackexchange.com/questions/38978/how-can-i-manually-install-a-latex-package-debian-ubuntu-linux


Here is how to remove texlive:

sudo apt-get remove texlive
sudo apt-get autoremove
sudo apt-get remove tex-common
Then download and install directly from TUG. You can choose your operating system there. This has a bunch of packages and is much more complete than other distributions. Much better than sudo apt-get install latex.
 
Following code is to dowload it directly:
wget http://mirror.ctan.org/systems/texlive/Images/texlive2012.iso
sudo mount -o loop texlive2012.iso /mnt
cd /mnt
sudo ./install-tl
 
 
Some issues related to installation was discussed here. Specially take note of
sudo apt-get purge command.
 
Here is a great way to find information about latex package:
 



I advise to recur to an installation by hand of a tex package only when such tex package is not available in an ubuntu package.
Searching for it with
apt-file -x search '/textcomp.sty$'
I obtain the following results:
texlive-latex-base: /usr/share/texmf-texlive/tex/latex/base/textcomp.sty
and it say the tex package you look for is contained in the ubuntu package whose name is texlive-latex-base, so install it, if not already installed.
By the way, apt-file is a command to install separately from the apt-get package, and only a convenient and alternative way to search into the repositories the same way ashttp://packages.ubuntu.com/.
 
 

No comments: