Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-05-2012, 07:25 AM   #1
Registered: Jul 2012
Posts: 97

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, 08:02 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
If you haven't already, I recommend reading &
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.

Old 07-07-2012, 03:22 AM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,169

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
/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
./configure --prefix=/usr
and with a merge of / and /usr ....

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


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-23-2013 11:22 PM
/opt vs. /usr/local sulekha Linux - General 7 09-16-2010 04:51 PM
Installing software to /usr/local or /opt? General Linux - Software 7 06-15-2010 11:17 PM
/opt or /usr/local jstephens84 Fedora 6 12-17-2005 01:29 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 PM.

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