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: