Vapor APT Repository

The Vapor APT repository is an easy way to install Apple Swift and the Vapor toolbox on Ubuntu.

Currently supported Ubuntu versions:

Currently supported Swift versions:

Install pre dependencies
sudo apt-get install software-properties-common python-software-properties

Import verification key with:
wget -q -O- | sudo apt-key add -

Add this repository to /etc/apt/sources.list as:
echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vapor.list

Update apt-get
sudo apt-get update

Install Swift and Vapor
sudo apt-get install swift vapor

Downgrade to previous version
sudo apt-get install swift=3.1.0