| 1 | = How to install PostGIS 1.5 on Ubuntu 11.10 (''oneiric'') from packages = |
| 2 | |
| 3 | ||'''Component'''||'''Version'''|| |
| 4 | ||PostGIS||1.5.3|| |
| 5 | ||PostgreSQL||9.1|| |
| 6 | ||PROJ||4.7.0|| |
| 7 | ||GEOS||3.2.2|| |
| 8 | |
| 9 | Install everything using: |
| 10 | {{{ |
| 11 | sudo apt-get install postgresql-9.1-postgis |
| 12 | }}} |
| 13 | Accept and install the approx 47 packages. |
| 14 | |
| 15 | 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. |
| 16 | {{{ |
| 17 | sudo -u postgres createdb template_postgis |
| 18 | sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql |
| 19 | sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql |
| 20 | sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis_comments.sql |
| 21 | }}} |
| 22 | |
| 23 | == See also == |
| 24 | * https://help.ubuntu.com/community/PostgreSQL |