Installing
-
5. Installing Swift Compiler
Next Relocate the Swift stuff
With:Copysudo mv /tmp/swift* /opt/swift
And then Set the SuperUser as Owner:
Copychown -R root:root /opt/swift
Moreover, import the GPG Key:
Copywget -q -O - https://swift.org/keys/all-keys.asc | sudo gpg --import -
-
6. Setting up User’s Path
Now to Amend the User PATH
Simply run:Copyecho 'export PATH=/opt/swift/usr/bin:$PATH' >> ~/.bashrc
ReLoad the PATH simply with:
Copybash
Contents