Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Faisal Mahmud
Author

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Share


How to install Postgres 9.6 on Ubuntu 16.04 in 30 seconds

Faisal MahmudFaisal Mahmud

Postgres is a widely used database engine that comes with a lot of powerful features. This is a simple guide to help You getting started with Postgres on Ubuntu!

Ubuntu 16.04 / 16.10

sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main"  
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -  
sudo apt-get update  
sudo apt-get install postgresql-9.6  

Ubuntu 14.04

sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"  
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -  
sudo apt-get update  
sudo apt-get install postgresql-9.6  

Missing add-apt-repository?

When running one of the commands stated above I ran into an issue related to add-apt-repository

sudo: add-apt-repository: command not found  

The command below solved it

sudo apt-get install software-properties-common python-software-properties  

You can read more here

Faisal Mahmud
Author

Faisal Mahmud

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Comments