Install Swift
Follow the instructions below to install the latest version of Swift on a supported platform.
Latest Release
-
Swiftly (recommended)
The Swiftly installer manages Swift and its dependencies. It supports switching between different versions and downloading updates.
Run this in a terminal:
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \ tar zxf swiftly-$(uname -m).tar.gz && \ ./swiftly init --quiet-shell-followup && \ . ~/.local/share/swiftly/env.sh && \ hash -r
License: Apache-2.0 | PGP: Signature
Instructions
-
Container
If you prefer a containerized environment, you can download the official container images for compiling and running Swift on a variety of distributions.
Docker Hub Instructions
Alternate installation options
Select Linux platform:
Select Amazon Linux version:
Latest Release (Swift 6.1)
-
Docker
The official Docker images for Swift.
6.1-amazonlinux2 Instructions -
Tarball
Tarball packages (.tar.gz)
Instructions
-
Static Linux SDK
Static Linux SDK - Cross compile to Linux
- Signature (PGP)
-
Checksum:
111c6f7d280a651208b8c74c0521dd99365d785c1976a6e23162f55f65379ac6
-
RPM
RPM Package Manager (Experimental use only)
Instructions
Older Releases
Development Snapshots
Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.
-
main
Tarball (tar.gz)
Docker
nightly-amazonlinux2 -
release/6.1
Tarball (tar.gz)
Docker
nightly-6.1-amazonlinux2
-
Instructions (Tarball)
Instructions (Docker)
Static Linux SDK
-
main
Static Linux SDK - Cross compile to Linux
- Signature (PGP)
-
Checksum:
cd1b0de0bcc809692e803a078800b9d577c0eefbd2b3d2cfd24e53f019ca5de3
-
release/6.1
Static Linux SDK - Cross compile to Linux
- Signature (PGP)
- Checksum:
2b73c30ec402f443857e6cd2ac06b8525f186e889a7a727af05601629148fe6a