All next stepts are performed in Raspberry Pi environment
- Create a temporary directory
cd ~ && mkdir swift5.9 && cd !$- Download the latest Swift version for ARM architecture(
aarch64). On the moment of preparing the manual the latest version is5.9
wget https://download.swift.org/swift-5.9-branch/ubuntu2004-aarch64/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-09-21-a/swift-5.9-DEVELOPMENT-SNAPSHOT-2023-09-21-a-ubuntu20.04-aarch64.tar.gz- Extract the acrhive
tar -xzvf swift-5.9-RELEASE-ubuntu20.04-aarch64.tar.gzcd swift-5.9-RELEASE-ubuntu20.04-aarch64/