Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Created March 17, 2024 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jj1bdx/24c3a9db48f9de5ad3f0939f4cd62d1f to your computer and use it in GitHub Desktop.
Save jj1bdx/24c3a9db48f9de5ad3f0939f4cd62d1f to your computer and use it in GitHub Desktop.
Ubuntu TeXLive environment

Installing TeXLive on Ubuntu

For Ubuntu 22.04.4 LTS and TeXLive 2024

Don't

  • Do not use default given packages. They are too old and obsolete.

Remove installed packages by apt first

Reference: How to remove everything related to TeX Live for fresh install on Ubuntu?

sudo apt-get purge texlive*
sudo rm -rf /usr/local/texlive/* and rm -rf ~/.texlive*
sudo rm -rf /usr/local/share/texmf
sudo rm -rf /var/lib/texmf
sudo rm -rf /etc/texmf
sudo apt-get remove tex-common --purge
rm -rf ~/.texlive
find -L /usr/local/bin/ -lname /usr/local/texlive/*/bin/* | xargs -r rm

Install TeXLive

Use install-tl-ubuntu

gh repo clone scottkosty/install-tl-ubuntu
cd install-tl-ubuntu
sudo ./install-tl-ubuntu

Setup the environment variables

(See Post-install Actions of The TeX Live Guide)

In ~/.zshrc:

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

Required upgrades for me

sudo zsh
umask 022
tlmgr update --self --all
tlmgr paper a4
tlmgr install collection-langjapanese
tlmgr install collection-latexextra
tlmgr install latexmk collection-luatex collection-fontsrecommended
tlmgr install collection-fontsextra
exit

See also

MacTeX BasicTeX config example with homebrew

[End of document]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment