Skip to content

Instantly share code, notes, and snippets.

@strika
Created April 4, 2016 07:10
Show Gist options
  • Save strika/b8dc4c5402f4950efe05543339d6fbfc to your computer and use it in GitHub Desktop.
Save strika/b8dc4c5402f4950efe05543339d6fbfc to your computer and use it in GitHub Desktop.
Install latest PostgreSQL on Ubuntu
# Based on http://www.postgresql.org/download/linux/ubuntu/
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment