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?


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).

  • It is bad practise to put stuff in /usr/bin. /usr/local is another place that I think is reserved. I don't know the difference between /usr/local and /opt. On my system, /opt has stuff arranged by package, and /usr/local I use for stuff that likes to spread it self out in to bin, libs etc. – ctrl-alt-delor Apr 1 '16 at 20:28
  • 1
    The Arch package puts stuff under /usr because that's where stuff installed by the package manager is supposed to go. Conversely, when you aren't using the package manager, don't put stuff under /usr, except under /usr/local which is for stuff not coming from a package. – Gilles Apr 1 '16 at 22:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.