latex(二)完全卸载
sudo apt-get purge texlive*rm -rf /usr/local/texlive/*andrm -rf ~/.texlive*rm -rf /usr/local/share/texmfrm -rf /var/lib/texmfrm -rf /etc/texmfsudo apt-get remove tex-common --purgerm -rf ~/.texlivefind -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).