5

This question already has an answer here:

The LaTeX in my system cannot support Sweave compilation to pdflatex, it warns for missing .sty files. I want to clean my system and reinstall a more complete LaTeX. What is the better way for doing so?

marked as duplicate by Qrrbrbirlbel, Kurt, lockstep, Marco Daniel, T. Verron Jul 7 '13 at 10:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    There are a few post on installing vanilla TeXLive on Ubuntu floating around. My post here tex.stackexchange.com/questions/120120/… has a link to how you uninstall the older version and install the new one. The information is in the first answer. – dustin Jul 7 '13 at 4:36
  • Note that Sweave has to be installed separately. It is a part of every R installation. See its homepage – karlkoeller Jul 7 '13 at 5:39
  • Again, that is the penalty of not using knitr. – Yihui Xie Jul 7 '13 at 6:28
5

Requirements : Ubuntu 13.04 and previous versions.

Uninstalling Latex:

Open your terminal and past the following commands :

sudo apt-get remove texlive
sudo apt-get autoremove
sudo apt-get remove tex-common --purge

Installing Latex:

They are currently 2 possibilities. You can first decide to install latex via official repository. Be aware that this version has not been updated recently.

sudo apt-get install texlive-full  

Or, you can download the last updated texlive source tar.gz at this

< link >


Then I suggest you to install a good editor, like texmaker :

sudo apt-get install texmaker  

Let me know if you encounter any problem.

  • It's a bad idea to install TeX Live by apt-get. The version is outdated. It's always the best to install TeX Live from here: tug.org/texlive – Marco Daniel Jul 7 '13 at 8:44
  • @MarcoDaniel You are definitely right. It was just for the record. – Header12 Jul 7 '13 at 8:53

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