New Swift Package Repository for Ubuntu/Debian Linux Distributions

@aatv , there aren't any Swift builds available for amd64 Debian Buster at the moment. There is a bug in binutils that is causing the builds to fail. I hope to have this fixed soon and amd64 packages available sometime this week.

Repository Update

New Install Script

I have created a new install script to allow easy selection of repository sections.
When running the install script you will now get a menu where you can select which repository section to install.


----- Choose Swift Release Type -----
  1) stable - Swift version 5.3.3
  2) latest - Swift version 5.4.* - this will update to the latest release version available
  3) development - Swift developer builds - this will update to the latest developer build available

Enter number [1/2/3] : 3

Installing Swift developer repository

Importing swiftlang gpg key... done.
Running apt-get update... done.

The repository is setup!
You can now install swift using 'sudo apt install swiftlang' 

New 'stable' Repository Section

The stable section allows you to install swift and not worry about the swift version changing when running apt upgrade. This is currently set at swift-5.3.3-release but can be changed to what ever the agreed stable version should be.

New Packages for Debian 10 buster - x86_64/amd64

There are now packages available for x86 Debian 10.
These include 5.3.3 , 5.4.2 and the latest developer snapshots.

Update to Ubuntu 21.04 Hirsute x86_64/amd64 Packages.

The work around to enable the install of libpython3.8 is now built into the installer script.
The /etc/apt/sources.list.d/swiftlang-release.list now includes groovy main.

deb https://archive.swiftlang.xyz/ubuntu/ hirsute main dev
deb https://swiftlang.xyz/ubuntu/ hirsute main dev
deb http://archive.ubuntu.com/ubuntu/ groovy main restricted

This allows libpython3.8 to be installed as a dependent with the Swift install without any extra work.

New Developer Snapshots

Swift 5.6 developer snapshots are now available in arm64 and amd64 in the following -

  • Debian 10 buster
  • Ubuntu 18.04 bionic
  • Ubuntu 20.04 focal
  • Ubuntu 21.04 hirsute
3 Likes

Debian 11 Bullseye Now Available

Debian 11 bullseye has been added to the repository with the following packages available.

  • swift-5.4.2-RELEASE for arm64 and amd64
  • swift-DEVELOPMENT-SNAPSHOT-2021-08-13-a for arm64 and amd64

How to add the repository using the quick install script.

# run update and install curl
sudo apt update && sudo apt install curl

# run repository install script
curl -s https://swiftlang.xyz/install.sh | sudo bash

# install swift
sudo apt install swiftlang
1 Like

Repository Update

Improvements to Install Script

The install script now supports most Ubuntu/Debian based distributions.
You can now install Swift on distributions such as -

  • Ubuntu
  • Debian
  • Linux Mint
  • Elementary OS
  • Lubuntu
  • Raspbian
  • and many more.

Ubuntu 21.04 Hirsute amd64 / x86_64

The Ubuntu 21.04 Hirsute amd64 / x86_64 packages are now natively built on ubuntu 21.04 and are compatible with the default python3.9 install. The work around to enable the install of libpython3.8 is no longer needed.

Developer Snapshots Updated

The developer snapshots have been updated to swift-DEVELOPMENT-SNAPSHOT-2021-08-25-a swift-DEVELOPMENT-SNAPSHOT-2021-08-30-a

7 Likes

Repository Update

Bug Fix

Fixed the following sudo apt update error with with dual arch installations with x86_64 and i386.

N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository doesn't support architecture 'i386'

Developer Snapshots Updated.

The developer snapshots have been updated to swift-DEVELOPMENT-SNAPSHOT-2021-09-07-a

Zorin OS

Swift install tested and confirmed on Zorin OS

2 Likes

@futurejones The website appears to be down?

@svanimpe It should be ok now, had some power supply issues to the server.

Thanks! I look forward to trying it out.

Swift on Linux really needs more official native packages and easier installation. Maybe RPM and Debs for Swift: Call for the Community - #36 by mishal_shah is a first step?

1 Like

Thanks for the link in Bugs @svanimpe.

Thanks for the repo. I think a link from the website to this thread would help those (like me) who found the website before the thread and wanted to confirm who the author is before sudo piping it to bash.

I'm going to try this out now, one week before breaking it with the 21.10 beta because I also really want horizontal workspaces.

Terms of Service

Privacy Policy

Cookie Policy