Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OndrejValenta/a749e7a7ae901f615399390073847522 to your computer and use it in GitHub Desktop.
Save OndrejValenta/a749e7a7ae901f615399390073847522 to your computer and use it in GitHub Desktop.

This installation is based on Postgres Apt repository

  • Installation steps for Postgres are defined here
  • Installation steps for PostGIS are defined here

Add keys to Apt

sudo apt install curl ca-certificates gnupg
sudo curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt update

Install Postgres with PostGIS

sudo apt-get install postgresql-11
sudo apt install postgresql-11-postgis-2.5.2 
sudo apt install postgresql-11-postgis-scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment