I read some posts and parts of FHS to understand which directory I should install packages in. As far as I could understand /opt is for independent packages and /usr/local is for packages that are not maintained by distro repo's.
I want to install a network emulator called "mininet" on my Debian wheezy, so that all users can use it. It has an install.sh script which installs both types of packages: maintained by repo & not maintained by repo.
As the first step of the installation I can indicate where I want my base directory to be. Now my question is which directory I should indicate as the base directory?
should it be:
"/usr/local", "/usr/local/mininet", "/usr/local/bin", "/usr/local/bin/mininet", "/opt" or some other directory?
I would appreciate if you could explain your answer too Thank you.
EDIT: Should I specify the name of the package in the path like we do when installing in /opt (e.g. /usr/local/mininet/) or I shouldn't?
/usr/local/binin/usr/local/.... is that compliant with FHS? – Sav Aug 17 '14 at 22:13/usr/local- so it's compliant. To me, it makes sense to use a structure like under/usr. – Volker Siegel Aug 18 '14 at 09:41