Problem deleted /usr/local

New to Debian (Or Linux in general)? Ask your questions here!

Problem deleted /usr/local

Postby gaiapuffo » 2017-12-28 09:10

Hi,Problem I have deleted /usr/local whit command rvm implode.....
There is a method for reconfiguring this folder with the default file?
gaiapuffo
 
Posts: 6
Joined: 2016-08-11 14:43

Re: Problem deleted /usr/local

Postby debiman » 2017-12-28 09:28

if you only just installed debian, you might recreate the folder structure from the installation medium. maybe. tbh i don't know.
or restore from the backup you made previously.

btw "rvm" seems ruby-related; how can it have wreaked such havoc on your system?

anyhow, i hope you learned your first lesson: no safety belts in linux, so drive carefully.
don't 'sudo' without good reason.
User avatar
debiman
 
Posts: 1877
Joined: 2013-03-12 07:18

Re: Problem deleted /usr/local

Postby pendrachken » 2017-12-28 15:11

You can find the hierarchy here:
http://refspecs.linuxfoundation.org/FHS ... lHierarchy

Just re-creat the folders with mkdir and make sure they are RX for everybody, but only W for root.


Please note, You only need this if you want to install locally compiled programs separately from the system without making .debs

/usr/local/* is pretty much the same thing as /opt/* is, a place for programs that is separate from the system files that get upgraded from repositories, while still being in the command line $PATH. It's only really useful if you either compile from source, or want to keep different versions of software separate from the system version.
Last edited by pendrachken on 2017-12-28 20:22, edited 1 time in total.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1310
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Problem deleted /usr/local

Postby Bulkley » 2017-12-28 18:53

I once deleted my /var directory and everything in it. To fix it I copied another /var from a Debian rescue disk.
Bulkley
 
Posts: 5435
Joined: 2006-02-11 18:35

Re: Problem deleted /usr/local

Postby debiman » 2017-12-29 10:41

pendrachken wrote:/usr/local/* is pretty much the same thing as /opt/* is, a place for programs that is separate from the system files that get upgraded from repositories, while still being in the command line $PATH.

oh, i didn't consider that in my previous reply.
so the system likely isn't borked.
User avatar
debiman
 
Posts: 1877
Joined: 2013-03-12 07:18


Return to Beginners Questions

Who is online

Users browsing this forum: anticapitalista, Wizard and 7 guests

fashionable