howto-install-texlive.org 3.6 KB

How to install texlive

  1. download installer from: https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
  2. extract the archive
  3. switch to directory of extracted archive
  4. run installer as root:
  5. #+begin_src sh sudo perl ./install-tl #+end_src
  6. it will show something like this:
  7. #+begin_quote ======================> TeX Live installation procedure <=====================

=====> Letters/digits in <angle brackets> indicate <======= ======> menu items for actions or customizations <======= help> https://tug.org/texlive/doc/install-tl.html <=======

Detected platform: GNU/Linux on x86_64

set binary platforms: 1 out of 16

set installation scheme: scheme-full

set installation collections: 40 collections out of 41, disk space required: 7605 MB (free: 47337 MB)

set directories: TEXDIR (the main TeX directory): usr/local/texlive/2022 TEXMFLOCAL (directory for site-wide local files): /usr/local/texlive/texmf-local TEXMFSYSVAR (directory for variable and automatically generated data): /usr/local/texlive/2022/texmf-var TEXMFSYSCONFIG (directory for local config): /usr/local/texlive/2022/texmf-config TEXMFVAR (personal directory for variable and automatically generated data): ~.texlive2022/texmf-var TEXMFCONFIG (personal directory for local config): ~/.texlive2022/texmf-config TEXMFHOME (directory for user-specific files): ~/texmf

options: [ ] use letter size instead of A4 by default [X] allow execution of restricted list of programs via \write18 [X] create all format files [X] install macro/font doc tree [X] install macro/font source tree [ ] create symlinks to standard directories

set up for portable installation

Actions: start installation to hard disk

save installation profile to 'texlive.profile' and exit quit

    Enter command: #+end_quote
  1. enter V for portable installation
  2. enter I to start installation. this will take a long while downloading all packages.
  3. after the installation has finished add something like the following to your =~/.profile=:
  4. #+begin_src sh ###########

########### export MANPATH="${MANPATH}:/usr/local/texlive/2022/texmf-dist/doc/man" export INFOPATH="${INFOPATH}:/usr/local/texlive/2022/texmf-dist/doc/info" export PATH="${PATH}:/usr/local/texlive/2022/bin/x86_64-linux"

export TEXDIR="/usr/local/texlive/2022"

export TEXMFLOCAL="/usr/local/texlive/texmf-local"

export TEXMFSYSVAR="/usr/local/texlive/2022/texmf-var"

export TEXMFSYSCONFIG="/usr/local/texlive/2022/texmf-config"

export TEXMFVAR="${HOME}/.texlive2022/texmf-var"

export TEXMFCONFIG="${HOME}/.texlive2022/texmf-config"

export TEXMFHOME="${HOME}/texmf" #+end_src