This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04
The current default Ubuntu apt repositories (up to 02.05.2018) only have up to postgresql-9.5. To get 10, we'll add the official postgres apt repository.
- Ubuntu 16.04:
sudo add-apt-repository 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main'
Now import the repository signing key, followed by an update to the package lists:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-10
Ensure that the server is started:
sudo service postgresql status