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.

I remove all files under /usr/share/texmf by mistake with rm(could I call it the curse of rm T_T). How could I do next to save the environment? Re-install? Or any other choice.

share|improve this question
    
Need more information (at least the operating system). But assuming that's the distribution's TeX system, and not a separate install of TeX Live, and we're on a Debian-derived system, I'd just migrate to installing the latest TeX Live. At least on one Ubuntu system I've checked, /usr/share/texmf is shared by at least 5 packages, each of which would have to be reinstalled. –  Mike Renfro May 28 '12 at 15:44
    
@MikeRenfro Thanks. My system is Ubuntu, yep a Debian derived distribution. –  Summer_More_More_Tea May 28 '12 at 15:45
2  
I'd just migrate using the instructions provided. Debian and Ubuntu's TeX Live packages are pretty old (TL 2009, unless you're running Debian wheezy or sid, or Ubuntu quantal). They're fine for most things, but there have been a ton of package updates and bug fixes since then, and most people here will assume you have an updated TeX system (or if nothing else, the answer will require updated versions of various packages). –  Mike Renfro May 28 '12 at 15:53
3  
Restore the files from your backup. –  Martin Schröder May 29 '12 at 6:15
2  
Did you consider removing the TeX related packages and re-adding them using you Linux package manager? How to do that is of course off-topic here but would be on topic for either Unix/Linux StackExchange or AskUbuntu. –  Joseph Wright May 29 '12 at 8:09
add comment

1 Answer

up vote 2 down vote accepted

If I were in such situation I would upgrade to TeXLive 2011. Installation of TexLive 2011 is no more difficult than running one script and creating dummy package. Of course, it is needed to remove all old TexLive packages:

sudo apt-get purge texlive*
share|improve this answer
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.