Ubuntu安装Texlive2022
1. 下载ISO镜像
可以在中科大网站下载:
http://mirrors.ustc.edu.cn/CTAN/systems/texlive/Images/
2. 安装步骤
挂载ISO:
sudo mount -o loop texlive2022.iso /mnt
cd /mnt
sudo ./install-tl
选择I
进行安装。
安装完毕后,显示:
Welcome to TeX Live!
See /usr/local/texlive/2022/index.html for links to documentation.
The TeX Live web site (https://tug.org/texlive/) contains any updates and corrections. TeX Live is a joint project of the TeX user groups around the world; please consider supporting it by joining the group best for you. The list of groups is available on the web at https://tug.org/usergroups.html.
Add /usr/local/texlive/2022/texmf-dist/doc/man to MANPATH.
Add /usr/local/texlive/2022/texmf-dist/doc/info to INFOPATH.
Most importantly, add /usr/local/texlive/2022/bin/x86_64-linux
to your PATH for current and future sessions.
Logfile: /usr/local/texlive/2022/install-tl.log
打开bashrc
文件,加入:
# 2022.04.06
export PATH=/usr/local/texlive/2022/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2022/texmf-dist/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2022/texmf-dist/doc/info:$INFOPATH
source ~/.bashrc
测试是否能够调用:
$ tex -version
TeX 3.141592653 (TeX Live 2022)
kpathsea version 6.3.4
Copyright 2022 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
挂载mnt:
sudo umount /mnt