How can I remove everything that is related to TeX Live from my Ubuntu 12.04? I first used the backport packages from ppa:texlive-backports/ppa
and later the manual install via install-tl-unx.tar.gz
. Somehow, everything screwed up, so I want to remove everything to start from scratch.
I want to get a recent TeX Live with Biber support and extended font support, i.e. support for Source Sans Pro.
What to do?
Best Answer
Try the following commands, one after another. If you progress, respective folders may already be deleted:
sudo apt-get purge texlive*
sudo rm -rf /usr/local/texlive/*
andrm -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
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, replacexargs rm
withxargs -t rm
(ortee
off to a log file, or whatever).Update
In case that - after the last command (8.) - your terminal returns something like this
if you know what you're doing, you can add
sudo
between the pipe andxargs rm
, so that it becomesor, to be more careful and also more thorough, follow the steps of this answer, which worked for me.
Update 2
Refer to this answer to solve the issue of
rm: missing operand
when running (8.)