wiki:UsersWikiPostGIS15Ubuntu1004pkg

Version 2 (modified by mwtoews, 13 years ago) ( diff )

How to install PostGIS 1.5 on Ubuntu 10.10 LTS (lucid) from packages

ComponentVersion
PostGIS1.5
PostgreSQL8.4
PROJ4.7
GEOS3.1

Install everything using:

sudo apt-get install postgresql-8.4-postgis

Accept and install the approx 12 packages.

Complete a post-install by creating a template, which can be re-used for creating multiple spatially-enabled databases. Or if you just want to make one spatially enabled database, you can modify the commands for your needs.

sudo -u postgres createdb template_postgis
sudo -u postgres createlang plpgsql template_postgis
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis.sql
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis_comments.sql

See also

Note: See TracWiki for help on using the wiki.