Difference between revisions of "Debian installation"

From Wiki
Jump to navigation Jump to search
(use ctxtools not texexec to check version)
 
(61 intermediate revisions by 14 users not shown)
Line 1: Line 1:
== Use TeXLive packages ==
+
{{note|Releases of Debian (or any other distribution for that matter) usually contain way too old TeX distributions for ConTeXt MKIV (but should work fine for MKII). If you want to live on bleeding edge, consider using the packages from Debian/unstable, [[ConTeXt Standalone]], or at least install the latest version of [[TeX Live]] with [[TLContrib]] manually.}}
  
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 "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?
+
== Install the ConTeXt packages ==
  
The directions for using TeXLive are at http://www.tug.org/texlive/debian.html
+
The status of ConTeXt in Debian/unstable is currently up to date with TeX Live 2021, and includes all the necessary bits and pieces, plus the modules shipped in TeX Live.
  
Make sure you install the texlive-metapost package if you do not have it already.
+
If you are running Debian sid or later, then the <code>context</code> and <code>context-modules</code> packages should already be visible.
 
+
Then do
 
 
 
 
== Install a [[Latin Modern]] font update ==
 
 
 
Do
 
<code>
 
  # apt-get install lmodern cm-super
 
</code>
 
  
== Install the ConTeXt packages ==
+
aptitude update
 +
aptitude install context context-modules
  
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 :
+
* The final version in debian bullseye (aka debian stable 11.2) is 2020.03.10.20200331-1
 
+
* In ''unstable'' is a version that is from the TeX Live 2021
  deb <nowiki>http://www.tug.org/texlive/Debian/</nowiki> context/
 
  deb-src <nowiki>http://www.tug.org/texlive/Debian/</nowiki> context/
 
 
 
Then do
 
  
  apt-get update
+
=== Install latest unstable context .deb package ===
  apt-get install context context-nonfree context-doc-nonfree
 
  
and apt will download and install the latest ConTeXt packages.
+
<tt>unstable</tt> means ''(mature) development'', the version number may changes. The software is ''stable''
  
== Steps to finish a first context upgrade ==
+
1. Download the two .deb-s
 +
http://packages.debian.org/unstable/all/context/download
 +
http://packages.debian.org/unstable/all/context-modules/download
  
If you have format files in
+
2. run as root (the version number might have increased a bit)
<tt>~/.texmf-var/web2c/<i>engine</i></tt> where <i>engine</i> is typically <tt>pdfetex</tt>, then these will shadow the ones installed by the context packageSo you need delete them.
+
dpkg --install context_2021.03.05.20220211-1_all.deb
 +
  mtxrun --generate
  
To find them, use <tt>kpsewhich cont-en.fmt</tt> (and similarly for the other formats)Run the <tt>kpsewhich</tt> from a 'typical' directory (e.g. your home directory), rather than from <tt>~/.texmf-var/web2c/pdfetex/</tt> (adjust for your engine), otherwise it will find the newly created formats before any others.
+
3. run as user
 +
  mtxrun --generate
  
If you have context installed in a directory that precedes <tt>/usr/share/texmf</tt>, 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.
+
Step 2. is currently still necessary, but soon an update of tex-common will run mtxrun --generate automatically when packages have changed (like mktexlsr), and there will be no need to run this anymore.
  
== Finished! ==
+
Step 3. needs to be done only when you have files in TEXMFHOME or you change things there.
  
That should do it! The output of <code>ctxtools --contextversion</code> (run as you, not as root) is hopefully like this:
+
You have now a system wide context-installation!
  
<code>
+
== See also ==
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)
 
</code>
 
  
The long path to <tt>context.tex</tt> and <tt>cont-new.tex</tt> show where the system thinks the context macros are installed.  Make sure your installation is finding those versions.
+
{{Installation navbox}}
  
 
[[Category:Installation]]
 
[[Category:Installation]]
See also the [[Debian TeXlive install]] page.
 

Latest revision as of 00:46, 14 February 2022


NOTE: Releases of Debian (or any other distribution for that matter) usually contain way too old TeX distributions for ConTeXt MKIV (but should work fine for MKII). If you want to live on bleeding edge, consider using the packages from Debian/unstable, ConTeXt Standalone, or at least install the latest version of TeX Live with TLContrib manually.

Install the ConTeXt packages

The status of ConTeXt in Debian/unstable is currently up to date with TeX Live 2021, and includes all the necessary bits and pieces, plus the modules shipped in TeX Live.

If you are running Debian sid or later, then the context and context-modules packages should already be visible. Then do

aptitude update
aptitude install context context-modules
  • The final version in debian bullseye (aka debian stable 11.2) is 2020.03.10.20200331-1
  • In unstable is a version that is from the TeX Live 2021

Install latest unstable context .deb package

unstable means (mature) development, the version number may changes. The software is stable

1. Download the two .deb-s http://packages.debian.org/unstable/all/context/download http://packages.debian.org/unstable/all/context-modules/download

2. run as root (the version number might have increased a bit)

dpkg --install context_2021.03.05.20220211-1_all.deb
mtxrun --generate

3. run as user

mtxrun --generate

Step 2. is currently still necessary, but soon an update of tex-common will run mtxrun --generate automatically when packages have changed (like mktexlsr), and there will be no need to run this anymore.

Step 3. needs to be done only when you have files in TEXMFHOME or you change things there.

You have now a system wide context-installation!

See also