For Ubuntu 22.04.4 LTS and TeXLive 2024
- Do not use default given packages. They are too old and obsolete.
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
gh repo clone scottkosty/install-tl-ubuntu
cd install-tl-ubuntu
sudo ./install-tl-ubuntu
(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}
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
MacTeX BasicTeX config example with homebrew
[End of document]