howtos:how_to_install_tex_live_on_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtos:how_to_install_tex_live_on_linux [2024-09-24 12:47 pm] – hcho | howtos:how_to_install_tex_live_on_linux [2026-01-24 08:57 am] (current) – hcho | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to install TeX Live on Linux ====== | ====== How to install TeX Live on Linux ====== | ||
| - | Slackware installs [[https:// | + | Slackware installs [[https:// |
| + | |||
| + | ===== Shared non-root installation ===== | ||
| + | |||
| + | The initial installation size for this method is larger (~9.6GB), but it can save disk storage on shared machines, since users use the same installation. It also does not require tlmgr for additional packages. | ||
| <code bash> | <code bash> | ||
| Line 15: | Line 19: | ||
| cd install-tl-[0-9]* | cd install-tl-[0-9]* | ||
| version=$(sed '/ | version=$(sed '/ | ||
| + | # --texmfhome must be ~/ | ||
| ./ | ./ | ||
| --no-interaction \ | --no-interaction \ | ||
| --texdir=$HOME/ | --texdir=$HOME/ | ||
| --texmflocal=$HOME/ | --texmflocal=$HOME/ | ||
| - | --texmfhome=$HOME/ | + | --texmfhome=~/ |
| + | --scheme=full \ | ||
| + | --paper=letter | ||
| + | |||
| + | # create a symlink for paths | ||
| + | cd ~/ | ||
| + | ln -s $version current | ||
| + | ) | ||
| + | |||
| + | # delete the installer | ||
| + | rm -rf install-tl-* | ||
| + | |||
| + | # add paths to TeX Live | ||
| + | cat << ' | ||
| + | |||
| + | # TeX Live | ||
| + | export PATH=" | ||
| + | export MANPATH=" | ||
| + | export INFOPATH=" | ||
| + | EOT | ||
| + | |||
| + | # read them into the current session | ||
| + | . ~/ | ||
| + | </ | ||
| + | |||
| + | For other users, | ||
| + | <code bash> | ||
| + | # create the same directory structure | ||
| + | mkdir -p ~/ | ||
| + | |||
| + | # create a symbolic link to the above installation | ||
| + | ln -sf ~hcho/ | ||
| + | |||
| + | # add paths to TeX Live | ||
| + | cat << ' | ||
| + | |||
| + | # TeX Live | ||
| + | export PATH=" | ||
| + | export MANPATH=" | ||
| + | export INFOPATH=" | ||
| + | EOT | ||
| + | |||
| + | # read them into the current session | ||
| + | . ~/ | ||
| + | </ | ||
| + | |||
| + | ===== Per-user installation ===== | ||
| + | |||
| + | The initial installation size for this method is smaller (~330M) because it installs only the basic scheme and requires tlmgr to install additional packages. However, this method can take up too much space when used on shared machines, since each user must install it. | ||
| + | |||
| + | <code bash> | ||
| + | # download the installer | ||
| + | cd /tmp | ||
| + | wget https:// | ||
| + | |||
| + | # uncompress it | ||
| + | tar xvf install-tl-unx.tar.gz | ||
| + | |||
| + | # install it | ||
| + | ( | ||
| + | cd install-tl-[0-9]* | ||
| + | version=$(sed '/ | ||
| + | # --texmfhome can be hardcoded as $HOME/ | ||
| + | ./ | ||
| + | --no-interaction \ | ||
| + | --texdir=$HOME/ | ||
| + | --texmflocal=$HOME/ | ||
| + | --texmfhome=~/ | ||
| --scheme=basic \ | --scheme=basic \ | ||
| --paper=letter | --paper=letter | ||
| Line 45: | Line 117: | ||
| Use [[https:// | Use [[https:// | ||
| + | |||
| + | ===== LaTeX editing ===== | ||
| You can use [[https:// | You can use [[https:// | ||
| For reference management, [[https:// | For reference management, [[https:// | ||
howtos/how_to_install_tex_live_on_linux.1727203629.txt.gz · Last modified: by hcho
