How to Quick-Start With Swift Programming on CentOS 8.x/Stream-8

April 6, 2021 | By the+gnu+linux+evangelist.

Installing

  1. 5. Installing Swift Compiler

    Next Relocate the Swift stuff
    With:

    sudo mv /tmp/swift* /opt/swift

    And then Set the SuperUser as Owner:

    chown -R root:root /opt/swift

    Moreover, import the GPG Key:

    wget -q -O - https://swift.org/keys/all-keys.asc | sudo gpg --import -
  2. 6. Setting up User’s Path

    Now to Amend the User PATH
    Simply run:

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

    ReLoad the PATH simply with:

    bash

Contents


QuickChic Theme • Powered by WordPress