How to Quick-Start with Swift Programming on Ubuntu 18.10 Cosmic

October 10, 2018 | By thelinuxevangelist | Filed in: Tutorial.

Swift Programming Ubuntu 18.10 - Setting Up

  1. Relocate the Swift stuff

    sudo mv /tmp/swift* /opt/swift

    And then Set the SuperUser as Owner:

    chown -R root:root /opt/swift

    Furthermore, import the GPG Key:

    wget -q -O - https://swift.org/keys/all-keys.asc | sudo gpg --import -
  2. Amending the User PATH

    echo 'export PATH=/opt/swift/usr/bin:$PATH' >> ~/.bashrc

    ReLoad the PATH simply with:

    bash

Tags: , , , , , , , , , , , , , , , , , ,