New Swift Package Repository for Ubuntu/Debian Linux Distributions

Repository Package Update.

I have rebuilt the .deb packages with uniform naming and iteration numbers. The release versions of the different arch types now align.

/var/www/swiftlang.xyz/public_html/ubuntu ~
swiftlang |        5.4.1-01-ubuntu-bionic |  bionic | amd64, arm64
swiftlang |         5.4.1-01-ubuntu-focal |   focal | amd64, arm64
swiftlang | 5.5-2021-07-09-a-ubuntu-focal |   focal | amd64, arm64
swiftlang |       5.4.1-01-ubuntu-hirsute | hirsute | arm64
~
/var/www/swiftlang.xyz/public_html/debian ~
swiftlang | 5.4.1-01-debian-buster | buster | arm64
swiftlang | 5.1.5-01-debian-buster | buster | armv7
~
/var/www/swiftlang.xyz/public_html/raspbian ~
swiftlang | 5.1.5-01-raspbian-buster | buster | armhf

Developer Snapshots

I have added a 'dev' section to the repository for the latest developer snapshots.
Run the following command to install the 'dev' section -

curl -s https://swiftlang.xyz/install-dev.sh | sudo bash

If you run apt-cache policy swiftlang you will see what versions are available -

apt-cache policy swiftlang

swiftlang:
  Installed: 5.4.1-01-ubuntu-focal
  Candidate: 5.5-2021-07-09-a-ubuntu20.04
  Version table:
     5.5-2021-07-09-a-ubuntu20.04 500
        500 https://swiftlang.xyz/ubuntu focal/dev amd64 Packages
 *** 5.4.1-01-ubuntu-focal 500
        500 https://swiftlang.xyz/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

Note: Snapshots are only available for ubuntu-focal (20.04) at the moment.

To install the latest version of swift version run the apt install command -

sudo apt install swiftlang

You can also specify which version to install by adding the package version number -

sudo apt install swiftlang=5.4.1-01-ubuntu-focal

To remove the 'dev' section run the standard install script -

curl -s https://swiftlang.xyz/install.sh | sudo bash
6 Likes