Changes between Version 5 and Version 6 of UsersWikiPostGIS20CentOS6pgdg


Ignore:
Timestamp:
10/12/12 02:12:59 (12 years ago)
Author:
Mike Taves
Comment:

test and modify for 9.2, the latest stable PostgreSQL

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20CentOS6pgdg

    v5 v6  
    3030A PGDG RPM file needs to be downloaded for your platform and your PostgreSQL version requirements (you can choose the later). Find the correct RPM file for your system from here: http://yum.postgresql.org/repopackages.php
    3131
    32 For example, if you have a 64-bit OS and want to install PostgreSQL 9.1:
     32For example, if you have a 64-bit OS and want to install PostgreSQL 9.2:
    3333{{{
    34 curl -O http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm
    35 rpm -ivh pgdg-centos91-9.1-4.noarch.rpm
     34curl -O http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
     35rpm -ivh pgdg-centos92-9.2-6.noarch.rpm
    3636}}}
    3737
     
    4646Install everything with:
    4747{{{
    48 yum install postgresql91-server postgis2_91
     48yum install postgresql92-server postgis2_92
    4949}}}
    5050
    5151Now perform a few post-installation setup commands, in the order: (1) Initialize the database cluster (required), (2) start database (recommended, if you want to use it straight away), (3) allow it to start-up automatically on reboot (recommended):
    5252{{{
    53 service postgresql-9.1 initdb
    54 service postgresql-9.1 start
    55 chkconfig postgresql-9.1 on
     53service postgresql-9.2 initdb
     54service postgresql-9.2 start
     55chkconfig postgresql-9.2 on
    5656}}}
    5757
    5858== Spatially enabling a database ==
    59 Spatially enabling a database using extensions is a new feature of PostgreSQL 9.1.
     59Spatially enabling a database using extensions is a new feature of PostgreSQL 9.2.
    6060
    6161Connect to your database using pgAdmin or psql, and run the following commands. To add postgis with raster support: