• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Correct Directory to use when installing software on Linux?

There's no such thing. The filesystem hierarchy just isn't designed that way. A well-packaged program should put its executables under /usr/bin or /usr/sbin (sbin = sysadmin programs), libraries under /usr/lib, and data files and documentation under /usr/share. If you're interested, you can find the gory details in the FHS docs.

Now, some programs are not really packaged well, so they want their own little directory to live in, Windows-style. In that case, you could create a directory under /opt or /usr/local.
 
Originally posted by: cleverhandle
There's no such thing. The filesystem hierarchy just isn't designed that way. A well-packaged program should put its executables under /usr/bin or /usr/sbin (sbin = sysadmin programs), libraries under /usr/lib, and data files and documentation under /usr/share. If you're interested, you can find the gory details in the FHS docs.

Now, some programs are not really packaged well, so they want their own little directory to live in, Windows-style. In that case, you could create a directory under /opt or /usr/local.

Thanks. Compiling and installing Apache 2.0 and its default is /usr/local/Apache2
 
Thanks. Compiling and installing Apache 2.0 and its default is /usr/local/Apache2

IMO it's best to stick with packages as much as possible because it makes upgrading, removing, reinstalling, etc a lot easier.
 
Originally posted by: cleverhandle
There's no such thing. The filesystem hierarchy just isn't designed that way. A well-packaged program should put its executables under /usr/bin or /usr/sbin (sbin = sysadmin programs), libraries under /usr/lib, and data files and documentation under /usr/share. If you're interested, you can find the gory details in the FHS docs.

Now, some programs are not really packaged well, so they want their own little directory to live in, Windows-style. In that case, you could create a directory under /opt or /usr/local.

Or in /usr/local/.

EDIT: I'm an idiot. I like all non-base system software to be under /usr/local and didn't read cleverhandle's post well enough.
 
Back
Top