Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I accidentally removed /usr/local/ directory. I have not reboot or anything. I am now root.

Do I have to install ubuntu again or just create a new user?

Thanks.

share|improve this question
    
What was the command? rm or rm -r? if rm: /usr/local/ should only have directories so it should not have deleted anything ;) –  Rinzwind May 3 '12 at 9:36
    
rm -rf /usr/local/ –  Alex May 3 '12 at 9:58
    
Here is a list of the directories that where in /usr/local/: pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY –  Rinzwind May 3 '12 at 10:01
add comment

1 Answer

up vote 1 down vote accepted

If you've just removed /usr/local, it is not critical. That directory is intended for local installations (i.e. packages installed outside the package management system, APT). You do not need to recreate it, programs that need it are supposed to install it themselves.

share|improve this answer
1  
Ok thank you. A little panic gone! –  Alex May 3 '12 at 9:59
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.