How to install PostGIS for Postgres on Ubuntu?

February 21, 2014 at 9:47 am

From the command line:

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install postgresql-9.1-postgis

And then don’t forget to restart Postgres:

sudo service postgresql restart