latex(二)完全卸载
sudo apt-get purge texlive*
rm -rf /usr/local/texlive/*
andrm -rf ~/.texlive*
rm -rf /usr/local/share/texmf
rm -rf /var/lib/texmf
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 rm
This finds all the files in /usr/local/bin
which point to a location within /usr/local/texlive/*/bin/*
and removes them; because we’ve already deleted all of /usr/local/texlive
, these are dead links. To see which files are being deleted, replace xargs rm
with xargs -t rm
(or tee off to a log file, or whatever).