I wonder if there is a convenient way to install packages on Ubuntu, except through tlmgr
. I cannot find many packages with apt-get install
texlive-package, don't know why. As for manual installation, it's too complicated and since the packages have all different files (.ino .sty .dtx…). I don't know what to do. Thanks.
[Tex/LaTex] install packages in ubuntu
installingpackagesUbuntu
Related Solutions
You can't use both tlmgr
and apt-get
(Ubuntu's package manager). Either you manually install TeXLive 2011 from texlive and use tlmgr
(which I would recommend), or you go with Ubuntu's packaged version of TeXLive (outdated, based on TeXLive 2009) and update it through apt-get
, but you can't mix both.
If you go for a manual install of the latest TeXLive, consider using equivs
to create a dummy TeXLive debian package and have your custom TeXLive installation taken into account for Ubuntu dependencies. Practically, put the following into a file called texlive-local.equivs
:
Section: misc
Priority: optional
Standards-Version: 3.9.2
Package: texlive-local
Version: 2011-1~1
Maintainer: you <you@domain.org>
Provides: biblatex, biblatex-dw, cm-super, cm-super-minimal, context, dvipng, feynmf, fragmaster, lacheck, latex-beamer, latex-cjk-all, latex-cjk-chinese, latex-cjk-chinese-arphic-bkai00mp, latex-cjk-chinese-arphic-bsmi00lp, latex-cjk-chinese-arphic-gbsn00lp, latex-cjk-chinese-arphic-gkai00mp, latex-cjk-common, latex-cjk-japanese, latex-cjk-japanese-wadalab, latex-cjk-korean, latex-cjk-thai, latex-cjk-xcjk, latexmk, latex-sanskrit, latex-xcolor, lcdf-typetools, lmodern, luatex, musixlyr, musixtex, pgf, preview-latex-style, prosper, ps2eps, psutils, purifyeps, t1utils, tex4ht, tex4ht-common, tex-gyre, texlive, texlive-base, texlive-bibtex-extra, texlive-binaries, texlive-common, texlive-doc-base, texlive-doc-bg, texlive-doc-cs+sk, texlive-doc-de, texlive-doc-el, texlive-doc-en, texlive-doc-es, texlive-doc-fi, texlive-doc-fr, texlive-doc-it, texlive-doc-ja, texlive-doc-ko, texlive-doc-mn, texlive-doc-nl, texlive-doc-pl, texlive-doc-pt, texlive-doc-ru, texlive-doc-si, texlive-doc-th, texlive-doc-tr, texlive-doc-uk, texlive-doc-vi, texlive-doc-zh, texlive-extra-utils, texlive-fonts-extra, texlive-fonts-extra-doc, texlive-fonts-recommended, texlive-fonts-recommended-doc, texlive-font-utils, texlive-formats-extra, texlive-games, texlive-generic-extra, texlive-generic-recommended, texlive-humanities, texlive-humanities-doc, texlive-lang-african, texlive-lang-all, texlive-lang-arab, texlive-lang-arabic, texlive-lang-armenian, texlive-lang-croatian, texlive-lang-cyrillic, texlive-lang-czechslovak, texlive-lang-danish, texlive-lang-dutch, texlive-lang-finnish, texlive-lang-french, texlive-lang-german, texlive-lang-greek, texlive-lang-hebrew, texlive-lang-hungarian, texlive-lang-indic, texlive-lang-italian, texlive-lang-latin, texlive-lang-latvian, texlive-lang-lithuanian, texlive-lang-manju, texlive-lang-mongolian, texlive-lang-norwegian, texlive-lang-other, texlive-lang-polish, texlive-lang-portuguese, texlive-lang-spanish, texlive-lang-swedish, texlive-lang-tibetan, texlive-lang-ukenglish, texlive-lang-vietnamese, texlive-latex3, texlive-latex-base, texlive-latex-base-doc, texlive-latex-extra, texlive-latex-extra-doc, texlive-latex-recommended, texlive-latex-recommended-doc, texlive-luatex, texlive-math-extra, texlive-metapost, texlive-metapost-doc, texlive-music, texlive-omega, texlive-pictures, texlive-pictures-doc, texlive-plain-extra, texlive-pstricks, texlive-pstricks-doc, texlive-publishers, texlive-publishers-doc, texlive-science, texlive-science-doc, texlive-xetex, texpower, texpower-manual, thailatex, tipa, ttf-freefont, ttf-gfs-artemisia, ttf-gfs-baskerville, ttf-gfs-bodoni-classic, ttf-gfs-didot, ttf-gfs-didot-classic, ttf-gfs-gazis, ttf-gfs-neohellenic, ttf-gfs-olga, ttf-gfs-porson, ttf-gfs-solomos, ttf-gfs-theokritos, ttf-sil-gentium, xindy, xindy-rules
Architecture: all
Description: My local installation of TeX Live 2011.
A full "vanilla" TeX Live 2011
http://tug.org/texlive/debian#vanilla
and run
sudo apt-get install equivs
equivs-control texlive-local
equivs-build texlive-local.equivs
sudo dpkg -i texlive-local_2011-1~1_all.deb
actually this is a further comment on corentin's answer, but it exceeds 600 characters.
Since http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/ is an Apache directory listing you can try downloading packages with wget. For example if you want to download l3experimental
where xcoffins
is a subfolder you can invoke wget like
wget --cut-dir=4 -np -R "index.html*" -nH -P ~/texmf -r http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/l3experimental/
or
wget --cut-dir=6 -np -R "index.html*" -P ~/texmf/tex/latex -r http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/l3experimental/
this.
-P ~/dir/in/home/directory/
specifies the local directory wherewget
should put your files.-nH
tellswget
that you don't want to create directories named after the host i.e.~/texmf/www.tug.org/*/*/
looks not so nice and latex won't find anything under~/texmf/www.tug.org
. But you can omit-nH
and change the local directory to-P ~/textmf/tex/latex
. Then you have a seperate directory tree that latex also searches.- whereby
--cut-dir=x
means that you don't want to create the first x folders of the uri in your local directory (you want to create~/texmf/tex/latex/l3experimental/
or~/texmf/tex/latex/www.tug.org/l3experimental/
instead of~/textmf/texlive/devsrc/Master/texmf-dist/tex/latex/l3experimental
). -R
instructswget
to exclude all files beginning withindex.html
.-r
is for recursive fetch- the argument of
-P
is the directory where you want to save all those things -np
excludes all parent directories ofl3experimental
(of course you can find a more detailed description in the manual pages ofwget
)
but generally be careful if you download things with wget
recursively it could mess up a whole directory tree. I would recommend you to first download the files in a temporary directory (for example with -P ~/texmftemporary
) where you can examine the downloaded directory tree.
Since latex also searches recursively for packages in ~/texmf/tex/latex
you don't have to bother if xcoffins
is a subfolder of any other folder/folders.
Of course you can redefine things further if you write a little bash
, perl
or whatever
script that is based on the above command.
Maybe this helps you!?
Best Answer
I'm not sure what problem you are having with the Debian/Ubuntu TeX Live packages. Norbert Preining and others have gone to a lot of trouble to make sure these packages work well. The major issue is that the packages get outdated. I think most people here would recommend a manual installation, but I use the TeX Live Debian packages and they work fine.
If you want a simple way to install the TeX Live Debian packages, you could just install the meta-package
texlive-full
. This installs a lot of stuff that you won't need, but if disk space is not a concern, then that is the simplest way to go. You may also find LaTeX: Debian Wiki useful.OTOH, the list of packages I have installed is as follows. These probably include most of the packages required for basic usage. I am currently using Debian wheezy (stable).