Where is the recommended place to install applications that are not from apt

directory-structuresoftware installation

The SDK for Dart comes as a zip file for Linux. I've only previously installed software using apt-get. Is there a convention for where I should put the dart-sdk folder? And should I add dart-sdk\bin to my path, or symlink it into a folder that's already in the path?

Best Answer

In the arch package, it seems Dart gets installed into /opt/dart-sdk. This also seems to match with what FHS says:

/opt is reserved for the installation of add-on application software packages.

The use of /opt for add-on software is a well-established practice in the UNIX community. The System V Application Binary Interface [AT&T 1990], based on the System V Interface Definition (Third Edition), provides for an /opt structure very similar to the one defined here.

The Arch package also seems to be put stuff in /usr/bin (I suspect symlinks to the things in /opt/dart-sdk/bin).

Related Question