diff --git a/download/_linux.md b/download/_linux.md index ee55b4593..96220aaa3 100644 --- a/download/_linux.md +++ b/download/_linux.md @@ -17,6 +17,12 @@ Note that nothing prevents Swift from being ported to other Linux distributions * CentOS 7 * Amazon Linux 2 +### Other distributions that work using community packages and repositories + +* Fedora 38 +* Arch Linux +* Ubuntu/Debian based distros (Using community package from community repository) + * * * ### Installation diff --git a/download/index.md b/download/index.md index 4f8367908..2dce9d01c 100644 --- a/download/index.md +++ b/download/index.md @@ -478,13 +478,73 @@ $ yum install epel-release $ yum install swiftlang ``` +##### Fedora RPM repository +```bash +sudo dnf install swift-lang +``` +Checkout [the corresponding Fedora Repository page](https://src.fedoraproject.org/rpms/swift-lang) for more information. {% include_relative _older-releases.md %} +#### Arch Linux + +On Arch Linux you can install Swift using AUR. You can either use a repackaged version of the Fedora RPM or get a native build for Arch Linux. + +You can find more information available at [Arch Linux Wiki](https://wiki.archlinux.org/title/Swift). + +##### Install using AUR helper tools + +Since Swift has AUR packages you can install it using AUR helper tools like `yay`: + +```bash +yay -S swift-language +``` +or +```bash +yay -S swift-bin +``` + + +##### Native Arch Linux build using AUR + +[Source](https://aur.archlinux.org/packages/swift-language) + +To install it you will need git and base-devel packages installed. + +```bash +git clone https://aur.archlinux.org/swift-language.git +cd swift-language +makepkg -si +``` +After that you will be asked if you want to instal requiered dependencies. Answer yes and wait for the build to finish. By the way since its building the whole thing it will take a while. + +##### Repackaged Fedora RPM + +Can be installed the same way as the previous one, and this package is faster to get up and running. Just change the repository like this: + +```bash +git clone https://aur.archlinux.org/swift-bin.git +cd swift-language +makepkg -si +``` + +#### Ubuntu/Debian community build + +There's also a community-made package for Ubuntu/Debian based distros that is easy to install. +Just copy the commands below to add the repository and install Swift. + +More information about the community repository is available at [swiftlang.xyz](https://www.swiftlang.xyz/). + +```bash +sudo apt install -y curl +curl -s https://archive.swiftlang.xyz/install.sh | sudo bash +sudo apt install swiftlang +``` + ## Snapshots ### Trunk Development (main)