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 Debian version:
Latest Release (Swift 6.1)
-
Docker
The official Docker images for Swift.
6.1-debian12 Instructions -
Tarball
Tarball packages (.tar.gz)
Instructions
-
Static Linux SDK
Static Linux SDK - Cross compile to Linux
- Signature (PGP)
-
Checksum:
111c6f7d280a651208b8c74c0521dd99365d785c1976a6e23162f55f65379ac6
Older Releases
Release | Date | Toolchain | Docker | Static SDK |
---|---|---|---|---|
Swift 6.0.3 | December 11, 2024 | x86_64 Signature (x86_64) aarch64 Signature (aarch64) | 6.0.3-bookworm | |
Swift 6.0.2 | October 28, 2024 | x86_64 Signature (x86_64) aarch64 Signature (aarch64) | 6.0.2-bookworm | |
Swift 6.0.1 | September 24, 2024 | x86_64 Signature (x86_64) aarch64 Signature (aarch64) | 6.0.1-bookworm | |
Swift 6.0 | September 16, 2024 | x86_64 Signature (x86_64) aarch64 Signature (aarch64) | 6.0-bookworm | |
Swift 5.10.1 | June 5, 2024 | x86_64 Signature (x86_64) aarch64 Signature (aarch64) | 5.10.1-bookworm | Unavailable |
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-debian-12 -
release/6.1
Tarball (tar.gz)
Docker
nightly-6.1-debian12
-
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