How to install PostGIS 2.1 on Ubuntu 14.04 LTS (trusty) from packages

Install PostGIS and dependencies

This command should install PostgreSQL 9.3 with PostGIS 2.1 and related dependencies:

sudo apt-get install postgresql-9.3-postgis-2.1

Spatially enabling a database

Connect to your database using pgAdminIII or psql, and use the commands to add the PostgreSQL extensions. To add PostGIS with raster support:


To add topology support, a second extension can be created on the database:

CREATE EXTENSION postgis_topology;

See also

Last modified 9 years ago Last modified on Jul 28, 2014, 4:08:50 AM
Note: See TracWiki for help on using the wiki.