directoryinstallationtorque

Linux /var directory vs /opt directory


From my limited experience in linux, I find a lot of 3rd party programs are installed by default to:

/opt

One program in particular, torque, installs by default to:

/var/spool/torque

I can override this with

./configure --with-server-home=/opt/torque

Is there any reason I should leave the default install directory alone, and not move it to

opt/torque?

I want someone who knows linux best practices to suggest where they think I should install it.

Update
I've researched File Hierarchy Standards (FHS). It seems like /opt and /var/opt are both valid locations for installing programs. I'd still like to know what is considered 'best practice' or even the most common location for installing applications.


Solution

  • There is more than one 'correct' place to install programs.

    According to the Filesystem Hierarchy Standards, user programs are frequently installed to /opt/ or /usr/local

    While there is nothing wrong with /var/spool/torque as your install directory, it does not follow the FHS.