Difference between revisions of "Debian installation"
(add quickstart section) |
|||
Line 1: | Line 1: | ||
+ | == Quickstart for the impatient == | ||
+ | |||
+ | (all done as root) If you have the tetex packages, get rid of them: | ||
+ | |||
+ | apt-get --purge remove tetex-{extra,doc,bin,base} | ||
+ | |||
+ | Add these lines to your <tt>/etc/apt/sources.list</tt>: | ||
+ | |||
+ | deb <nowiki>http://www.tug.org/texlive/Debian/</nowiki> context/ | ||
+ | deb-src <nowiki>http://www.tug.org/texlive/Debian/</nowiki> context/ | ||
+ | |||
+ | Then install the packages: | ||
+ | |||
+ | apt-get upgrade | ||
+ | apt-get install texlive lmodern cm-super texlive-fonts-recommended \ | ||
+ | context context-nonfree context-doc-nonfree | ||
+ | |||
+ | Read on for the details. | ||
+ | |||
== Use TeXLive packages == | == Use TeXLive packages == | ||
− | The context packages depend on [http://www.tug.org/texlive TeXLive], so if you are using the Debian teTeX packages (e.g. see whether tetex-base is installed by doing | + | The context packages depend on [http://www.tug.org/texlive TeXLive], so if you are using the Debian teTeX packages (e.g. see whether <tt>tetex-base</tt> is installed by doing <code>dpkg -l tetex-base</code>), it's time to change to TeXLive. You'll have to do so eventually since teTeX 3.0 will be the last upstream release of teTeX. If not now, when? |
− | If you are switching from teTeX, it's important to <b>purge</b>, not just remove the <tt>tetex-*</tt> packages | + | If you are switching from teTeX, it's important to <b>purge</b>, not just remove the <tt>tetex-*</tt> packages before installing the TeXLive packages. Otherwise the teTeX configuration files, including those in <tt>/etc/texmf/texmf.d/</tt> and <tt>/etc/texmf/fmt.d/</tt>, will haunt the system like a ghost. To purge: |
apt-get --purge remove tetex-{extra,doc,bin,base} | apt-get --purge remove tetex-{extra,doc,bin,base} | ||
− | The full directions for using TeXLive are at http://www.tug.org/texlive/debian.html or | + | The full directions for using TeXLive are at http://www.tug.org/texlive/debian.html or |
[[Debian TeXlive install]], though if you are brave you can just try: | [[Debian TeXlive install]], though if you are brave you can just try: | ||
Line 14: | Line 33: | ||
Once you've installed the basic packages, you'll need a few extras: | Once you've installed the basic packages, you'll need a few extras: | ||
− | apt-get install | + | apt-get install lmodern cm-super |
== Check for shadowing formats and macros == | == Check for shadowing formats and macros == |
Revision as of 06:52, 6 January 2007
Contents
Quickstart for the impatient
(all done as root) If you have the tetex packages, get rid of them:
apt-get --purge remove tetex-{extra,doc,bin,base}
Add these 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 install the packages:
apt-get upgrade apt-get install texlive lmodern cm-super texlive-fonts-recommended \ context context-nonfree context-doc-nonfree
Read on for the details.
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 change to TeXLive. You'll have to do so eventually since teTeX 3.0 will be the last upstream release of teTeX. If not now, when?
If you are switching from teTeX, it's important to purge, not just remove the tetex-* packages before installing the TeXLive packages. Otherwise the teTeX configuration files, including those in /etc/texmf/texmf.d/ and /etc/texmf/fmt.d/, will haunt the system like a ghost. To purge:
apt-get --purge remove tetex-{extra,doc,bin,base}
The full directions for using TeXLive are at http://www.tug.org/texlive/debian.html or Debian TeXlive install, though if you are brave you can just try:
apt-get update && apt-get install texlive
Once you've installed the basic packages, you'll need a few extras:
apt-get install lmodern cm-super
Check for shadowing formats and macros
These installation instructions describe a system-wide install. But individual users may have followed the old directions on this page and (sorry!) made a per-user ConTeXt installation. Those will shadow the system-wide install. If that's what they want to do, no problem.
But if they want to use the system-wide install (recommended except for those who are testing Hans's latest versions...), then there are two issues.
The first issue is old format files. If a user has format files in ~/.texmf-var/web2c/engine where engine is typically pdfetex, then these will shadow the ones installed by the context package. So the user should delete the ConTeXt-related ones, such as cont-*.fmt, mptopdf.fmt, and metafun.mem.
To find them, the user can do:
kpsewhich cont-en.fmt
or
kpsewhich -engine pdfetex cont-en.fmt
(and similarly for the other formats). Run it from a 'typical' directory (e.g. ~), rather than from ~/.texmf-var/web2c/pdfetex/ (adjust for your engine), otherwise it will find the newly created formats before any others even if they are not shadowing anything else.
The second issue is the ConTeXt macros. If a user has installed them a directory that shadows /usr/share/texmf, then they will be found rather than the system-wide ones. So move the shadowing context installations out of the way. The user can check with
kpsewhich cont-new.tex
and make sure that it's not finding any (until you do the system-wide install, of course).
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.
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.