This tutorial will help you to install swift programming language on your Debian 9 Stretch Linux system.

Step 1 – Prerequisites

Login to your Debian 9 system using SSH (Shell) access. Now install the required dependencies for swift installation on your system.

Step 2 – Install Swift on Debian 9

The official download page provides swift for Ubuntu and Xcode, but you can download archive of Ubuntu 18.04 and install swift on Debian 9 Strech Linux system. Use the following command to download Swift 4.2.1 on the Debian 9 system. Then extract the downloaded archive Also, configure the swift binary to system’s PATH environment variable.

Step 3 – Verify Swift Version

Use the following command to check the current installed Swift version on your system.

Step 4 – Swift REPL Examples

Just type swift on your system console and you will get Swift console. You can use this console for quick operations and for the learning purpose. Now, run some sample commands to test the console running properly.

How To Install Swift on Debian 9  Stretch    TecAdmin - 9