Skip to content

Instantly share code, notes, and snippets.

@davemcp
Created June 22, 2016 23:17
Show Gist options
  • Select an option

  • Save davemcp/c5367ad24e933914fd10ab159bb49ffd to your computer and use it in GitHub Desktop.

Select an option

Save davemcp/c5367ad24e933914fd10ab159bb49ffd to your computer and use it in GitHub Desktop.
Install Postgres client on Ubuntu
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.5-postgis-2.2 postgresql-contrib-9.5
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev
sudo apt-get install postgresql-9.5-pgrouting
sudo apt-get pgadmin3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment