Setting Up
-
5. Installing Swift
Next to Install Swift Platform
Relocate the Swift stuff with:sudo mv /tmp/swift* /opt/swift
Again Set the SuperUser as Owner:
chown -R root:root /opt/swift
And finally, import the GPG Key:
wget -q -O - https://swift.org/keys/all-keys.asc | sudo gpg --import -
-
6. Setting Up PATH
Now Amend the User PATH
Edit the Bash Configuration File to Append the Binaries into the Working Environment:echo 'export PATH=/opt/swift/usr/bin:$PATH' >> ~/.bashrc
ReLoad the PATH simply with:
bash
Contents