Debian installation

From Wiki
Revision as of 05:29, 6 January 2007 by Sanjoy (talk | contribs) (start merging metapost section into here)
Jump to navigation Jump to search

Use TeXLive packages

The context packages depend on TeXLive, so if you are using the Debian teTeX packages (e.g. see whether tetex-base is installed by doing "dpkg -l tetex-base"), it's time to make the change to TeXLive. You'll have to do it eventually since teTeX 3.0 will be its last upstream release. So if not now, when?

The directions for using TeXLive are at http://www.tug.org/texlive/debian.html

You'll need a few TeXLive packages in particular:

 apt-get install texlive-metapost lmodern cm-super

Install a Latin Modern font update

Do

 # apt-get install lmodern cm-super

Install the ConTeXt packages

Norbert Preining has produced reliable, complete ConTeXt packages for Debian, and they use very recent versions of ConTeXt (as of this writing, which is 2007.01.05, the latest package has the 2007.01.02 version of ConTeXt). Here's how to use them. Add these two lines to your /etc/apt/sources.list :

 deb http://www.tug.org/texlive/Debian/ context/
 deb-src http://www.tug.org/texlive/Debian/ context/

Then do

 apt-get update
 apt-get install context context-nonfree context-doc-nonfree

and apt will download and install the latest ConTeXt packages.

Steps to finish a first context upgrade

If you have format files in ~/.texmf-var/web2c/engine where engine is typically pdfetex, then these will shadow the ones installed by the context package. So you need delete them.

To find them, use kpsewhich cont-en.fmt (and similarly for the other formats). Run the kpsewhich from a 'typical' directory (e.g. your home directory), rather than from ~/.texmf-var/web2c/pdfetex/ (adjust for your engine), otherwise it will find the newly created formats before any others.

If you have context installed in a directory that precedes /usr/share/texmf, then they will shadow the ones installed by the package, and you will get a clash (the format files will be the ones installed by the package, but later versions will be read in). So you need to move the shadowing context installations out of the way.

Finished!

That should do it! The output of ctxtools --contextversion (run as you, not as root) is hopefully like this:

CtxTools | context version: 2007.01.02 13:44 (/usr/share/texmf/tex/context/base/context.tex)
CtxTools | context version: 2007.01.02 13:44 (/usr/share/texmf/tex/context/base/cont-new.tex)

The long path to context.tex and cont-new.tex show where the system thinks the context macros are installed. Make sure your installation is finding those versions. See also the Debian TeXlive install page.