Swift toolchain location on Linux

Viewed 1282

I'm looking into running Swift on a Ubuntu 16.04 server. However I want to be certain about where I should install the toolchain.

From swift.org:

If you installed the Swift toolchain on Linux to a directory other than the system root, you will need to run the following command, using the actual path of your Swift installation...

Then from Kitura's Setting Up instructions:

After extracting the .tar.gz file, update your PATH environment variable so that it includes the extracted tools:

$ export PATH=<path to uncompressed tar contents>/usr/bin:$PATH

  1. Where is the best place to install these type of things? In the past I would rely on apt-get or installation scripts provided by maintainers but this doesn't seem to be the case with Swift.

  2. Are there any benefits or disadvantages to not installing it at the system root?

Note: This question borders on "best practices", which I believe is frowned upon here. I'm sorry about that; I've googled around and this seems to be something that people know implicitly. However, I don't yet and need some guidance

1 Answers
Related