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 && \ . ${SWIFTLY_HOME_DIR:-~/.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 Red Hat Universal Base Image version:
Latest Release (Swift 6.1.2)
-
Docker
The official Docker images for Swift.
6.1.2-rhel-ubi9 Instructions -
Tarball
Tarball packages (.tar.gz)
Instructions
-
Static Linux SDK
Static Linux SDK - Cross compile to Linux
- Signature (PGP)
-
Checksum:
df0b40b9b582598e7e3d70c82ab503fd6fbfdff71fd17e7f1ab37115a0665b3b
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-rhel-ubi9 -
release/6.2
Tarball (tar.gz)
Docker
nightly-6.2-rhel-ubi9
-
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
Instructions (Static Linux SDK)
Older Snapshots (main)
Older Snapshots (release/6.2)
Download |
---|
May 14, 2025 Signature |
May 7, 2025 Signature |
April 24, 2025 Signature |
April 23, 2025 Signature |
April 21, 2025 Signature |