LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-05-2012, 08:25 AM   #1
Alpha90
Member
 
Registered: Jul 2012
Posts: 45

Rep: Reputation: Disabled
/usr vs /usr/local (& /opt) when describing non system software (debate welcomed)


Hello LQ

I was and well for the most part am a newbie in linux still, i know my way around a system to cause massive damages but not well enough to fix most problems. But that is all changing as i mature my experience with linux. However one of my goals that i am beginning to work on today is LFS on a debian install however i leave myself with a interesting debate that i would love to hear input on. What i have read and been told was /bin and /sbin /lib(64) were always static files for the kernel, /usr and the subdirectories directly under it barring local were where the distrobution installed its noncritical software and /usr/local + /opt was for the system administrators. If you were building a linux install from scratch what software packages would you compile and install in the secondary /usr directory and what software would you install in the tertiary /usr/local or /opt level

I personally came from a windows admin / student programmer background and the aspect of windows that forced all installed application and pretty much any nontrivial application to be interwoven with the windows registry scattering configuration data all over the hard drive scattering in several directories and a monolithic configuration file. Making software that survive (WITHOUT some glitch) rare and recovering software from a damaged windows install impossible (since you loose the registry) So when i got into linux and studied the unix philosophy i wanted to make a system that was modular so that a partition of binaries could have severability so that a binary had all its dependants on the same partition so if you for example corrupt your root to the point your in a boot loop and its not a bootloader problem you could just reformat the / directory and mount your /usr/local partition and your /home partition and volia your back in buisness data saved and programs saved without needing to breakout the backups
 
Old 07-05-2012, 09:02 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
If you haven't already, I recommend reading https://en.wikipedia.org/wiki/Filesy...archy_Standard & https://en.wikipedia.org/wiki/Unix_directory_structure.
They give the Official Stds eg see the links at the bottom of that first page for original docs.

However, given that there is no way to enforce the FHS on any given system, take with a pinch of salt when accessing a new machine.

HTH
 
Old 07-07-2012, 04:22 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,264

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
/usr/local is a hold over from years past like /usr is

personally i have never had a need for "/usr/local" is is not in the default path of many OS's and only causes problems if you do not use
Code:
./configure --prefix=/usr
and with a merge of / and /usr ....

/opt is a good a place as any
libreoffice and kde3/qt3 default there
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to install software /opt? or /usr/local? sfwalter Linux - General 4 08-24-2013 12:22 AM
/opt vs. /usr/local sulekha Linux - General 7 09-16-2010 05:51 PM
Installing software to /usr/local or /opt? General Linux - Software 7 06-16-2010 12:17 AM
/opt or /usr/local jstephens84 Fedora 6 12-17-2005 02:29 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 10:21 AM


All times are GMT -5. The time now is 09:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration