View Full Version : Installing under /usr

22nd July 2006, 09:36 PM
I installed mplayer under /usr/local/

but then I just read

"/usr is the second major section of the filesystem. /usr is shareable, read-only data. That means that /usr should be shareable between various FHS-compliant hosts and must not be written to. Any information that is host-specific or varies with time is stored elsewhere.

Large software packages must not use a direct subdirectory under the /usr hierarchy."

So should I remove it and install it somewhere else ?

22nd July 2006, 09:50 PM
sorry, found my own answer

Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr

Mariano Suárez-
22nd July 2006, 11:07 PM
I wonder what is the definition of "locally installed"...

In any case, one thing that seems to work for a lot of people is installing
packages which are not managed by the distro package-management-system
into their own subtree under /opt; that way it becomes rather simple to remove
them. Of course, you need to set up PATHs and LIBDIRs appropriately to look
into /opt/<some-package>/bin and so on.

23rd July 2006, 12:20 AM
How does the /usr/src directory fit into all that?

Is it a suggestion that /usr should be its own partition?