Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
how about rm -rf /usr/local/texlive/2012 and rm -rf ~/.texlive2012? –  cmhughes Jan 26 '13 at 20:00
1  
For new versions, not from the official repository, consider installing on /opt. –  Sigur Jan 26 '13 at 20:04
add comment

3 Answers

up vote 21 down vote accepted

Try the following commands, one after another. If you progress, respective folders may already be deleted:

  1. sudo apt-get purge texlive*
  2. rm -rf /usr/local/texlive/2012 and rm -rf ~/.texlive2012
  3. rm -rf /usr/local/share/texmf
  4. rm -rf /var/lib/texmf
  5. rm -rf /etc/texmf
  6. sudo apt-get remove tex-common --purge
  7. rm -rf ~/.texlive
share|improve this answer
    
Thanks to uzsolt and kudos to @cmhughes. –  Martin Betz Jan 26 '13 at 22:18
    
Thanks to @dustin for the update for Tex Live 2013. –  Martin Betz Jun 21 '13 at 8:45
    
That is fine. Without that command, an artifact from debian installation is left over. This isn't a problem for 2012 but it cause a headache for me when installing 2013. –  dustin Jun 21 '13 at 13:04
add comment

I think you should

  1. remove all packages (via ubuntu's package manager and install-tl too)
  2. remove /usr/{,local}/share/texmf*
  3. remove texmf-releated things from /var/ (maybe /var/lib/texmf)
  4. remove /etc/texmf too
  5. your home directory: ~/.texlive

I think it's enough.

share|improve this answer
add comment

Martin Betz's answer is great but it is missing one line that caused issue on my machine (Ubuntu 13.04). This was for upgrading from 2012 to 2013.

After 5., run sudo apt-get remove tex-common --purge. If not, you may have the problem I faced here Does TeXLive2013 need any special install instructions?

share|improve this answer
    
I added your extra line to my answer. I hope you are okay with that! –  Martin Betz Jun 21 '13 at 8:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.