CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_install_tex_live_on_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_install_tex_live_on_linux [2026-01-24 08:57 am] hchohowtos:how_to_install_tex_live_on_linux [2026-04-18 02:41 pm] (current) hcho
Line 1: Line 1:
 ====== How to install TeX Live on Linux ====== ====== How to install TeX Live on Linux ======
  
-Slackware installs [[https://www.tug.org/texlive/|TeX Live]] by default. However, extra packages and documentation require root permissions to install (`texlive-extraand `texlive-docs`), and they are not a full installation. This HOWTO explains how to install TeX Live as a non-root user.+Slackware installs [[https://www.tug.org/texlive/|TeX Live]] by default. However, extra packages and documentation require root permissions to install (''texlive-extra'' and ''texlive-docs''), and they are not a full installation. This HOWTO explains how to install TeX Live as a non-root user.
  
 ===== Shared non-root installation ===== ===== Shared non-root installation =====
Line 19: Line 19:
 cd install-tl-[0-9]* cd install-tl-[0-9]*
 version=$(sed '/version [0-9]/!d; s/.*version //' release-texlive.txt) version=$(sed '/version [0-9]/!d; s/.*version //' release-texlive.txt)
-# --texmfhome must be ~/usr/local/share/texmf, not hardcoded $HOME/usr/local/share/texmf+# --texmfhome must be ~/local/share/texmf, not hardcoded $HOME/local/share/texmf
 ./install-tl \ ./install-tl \
  --no-interaction \  --no-interaction \
- --texdir=$HOME/usr/local/opt/texlive/$version \ + --texdir=$HOME/opt/texlive/$version \ 
- --texmflocal=$HOME/usr/local/opt/texlive/texmf-local \ + --texmflocal=$HOME/opt/texlive/texmf-local \ 
- --texmfhome=~/usr/local/share/texmf \+ --texmfhome=~/local/share/texmf \
  --scheme=full \  --scheme=full \
  --paper=letter  --paper=letter
  
 # create a symlink for paths # create a symlink for paths
-cd ~/usr/local/opt/texlive+cd ~/opt/texlive
 ln -s $version current ln -s $version current
 ) )
Line 40: Line 40:
  
 # TeX Live # TeX Live
-export PATH="$HOME/usr/local/opt/texlive/current/bin/x86_64-linux:$PATH" +export PATH="$HOME/opt/texlive/current/bin/x86_64-linux:$PATH" 
-export MANPATH="$HOME/usr/local/opt/texlive/current/texmf-dist/doc/man:$MANPATH" +export MANPATH="$HOME/opt/texlive/current/texmf-dist/doc/man:$MANPATH" 
-export INFOPATH="$HOME/usr/local/opt/texlive/current/texmf-dist/doc/info:$INFOPATH"+export INFOPATH="$HOME/opt/texlive/current/texmf-dist/doc/info:$INFOPATH"
 EOT EOT
  
Line 52: Line 52:
 <code bash> <code bash>
 # create the same directory structure # create the same directory structure
-mkdir -p ~/usr/local/opt ~/usr/local/share/texmf+mkdir -p ~/opt ~/local/share/texmf
  
 # create a symbolic link to the above installation # create a symbolic link to the above installation
-ln -sf ~hcho/usr/local/opt/texlive ~/usr/local/opt+ln -sf ~hcho/opt/texlive ~/opt
  
 # add paths to TeX Live # add paths to TeX Live
Line 61: Line 61:
  
 # TeX Live # TeX Live
-export PATH="$HOME/usr/local/opt/texlive/current/bin/x86_64-linux:$PATH" +export PATH="$HOME/opt/texlive/current/bin/x86_64-linux:$PATH" 
-export MANPATH="$HOME/usr/local/opt/texlive/current/texmf-dist/doc/man:$MANPATH" +export MANPATH="$HOME/opt/texlive/current/texmf-dist/doc/man:$MANPATH" 
-export INFOPATH="$HOME/usr/local/opt/texlive/current/texmf-dist/doc/info:$INFOPATH"+export INFOPATH="$HOME/opt/texlive/current/texmf-dist/doc/info:$INFOPATH"
 EOT EOT
  
Line 86: Line 86:
 cd install-tl-[0-9]* cd install-tl-[0-9]*
 version=$(sed '/version [0-9]/!d; s/.*version //' release-texlive.txt) version=$(sed '/version [0-9]/!d; s/.*version //' release-texlive.txt)
-# --texmfhome can be hardcoded as $HOME/usr/local/share/texmf+# --texmfhome can be hardcoded as $HOME/local/share/texmf
 ./install-tl \ ./install-tl \
  --no-interaction \  --no-interaction \
- --texdir=$HOME/usr/local/opt/texlive/$version \ + --texdir=$HOME/opt/texlive/$version \ 
- --texmflocal=$HOME/usr/local/opt/texlive/texmf-local \ + --texmflocal=$HOME/opt/texlive/texmf-local \ 
- --texmfhome=~/usr/local/share/texmf \+ --texmfhome=~/local/share/texmf \
  --scheme=basic \  --scheme=basic \
  --paper=letter  --paper=letter
  
 # create a symlink for paths # create a symlink for paths
-cd ~/usr/local/opt/texlive+cd ~/opt/texlive
 ln -s $version current ln -s $version current
 ) )
Line 107: Line 107:
  
 # TeX Live # TeX Live
-export PATH="$HOME/usr/local/opt/texlive/current/bin/x86_64-linux:$PATH" +export PATH="$HOME/opt/texlive/current/bin/x86_64-linux:$PATH" 
-export MANPATH="$HOME/usr/local/opt/texlive/current/texmf-dist/doc/man:$MANPATH" +export MANPATH="$HOME/opt/texlive/current/texmf-dist/doc/man:$MANPATH" 
-export INFOPATH="$HOME/usr/local/opt/texlive/current/texmf-dist/doc/info:$INFOPATH"+export INFOPATH="$HOME/opt/texlive/current/texmf-dist/doc/info:$INFOPATH"
 EOT EOT
  
Line 117: Line 117:
  
 Use [[https://www.tug.org/texlive/tlmgr.html|tlmgr]] (already installed with TeX Live) to install new packages. Use [[https://www.tug.org/texlive/tlmgr.html|tlmgr]] (already installed with TeX Live) to install new packages.
 +
 +===== Updating older TeX Live =====
 +
 +[[https://www.tug.org/texlive/acquire.html#past|Past releases]]:
 +<code bash>
 +# for TeX Live 2025
 +tlmgr option repository https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2025/tlnet-final
 +</code>
  
 ===== LaTeX editing ===== ===== LaTeX editing =====
howtos/how_to_install_tex_live_on_linux.1769270239.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki