Skip to content

Install on Ubuntu

Installing Vapor on Ubuntu only takes a couple of minutes.


Vapor supports the same versions of Ubuntu that Swift supports.

Version Codename
16.10 Yakkety Yak
16.04 Xenial Xerus
14.04 Trusty Tahr

APT Repo

Add Vapor's APT repo to get access to all of Vapor's system packages.

Quick Script

Easily add Vapor's APT repo with this handy script.

eval "$(curl -sL"


This command requires curl which can be installed using sudo apt-get install curl


When configuring Ubuntu from a Dockerfile, adding the APT repo can be done via this command:

    RUN /bin/bash -c "$(wget -qO-"


Or add the repo manually.

wget -q -O- | sudo apt-key add -
echo "deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vapor.list
sudo apt-get update

Install Vapor

Now that you have added Vapor's APT repo, you can install the required dependencies.

sudo apt-get install swift vapor

Verify Installation

Double check the installation was successful by running:

eval "$(curl -sL"


Learn more about the Vapor toolbox CLI in the Toolbox section of the Getting Started section.

Check out's guide to using downloads if you need more detailed instructions for installing Swift 3.1.