Changes between Version 2 and Version 3 of UsersWikiPostGIS21CentOS6pgdg


Ignore:
Timestamp:
Dec 18, 2014, 7:09:58 PM (8 years ago)
Author:
Mike Taves
Comment:

use PostgreSQL 9.4 as example

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS21CentOS6pgdg

    v2 v3  
    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.3:
     32For example, if you have a 64-bit OS and want to install PostgreSQL 9.4:
    3333{{{
    34 curl -O http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
    35 rpm -ivh pgdg-centos93-9.3-1.noarch.rpm
     34curl -O http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm
     35rpm -ivh pgdg-centos94-9.4-1.noarch.rpm
    3636}}}
    3737
     
    4646Install everything with:
    4747{{{
    48 yum install postgresql93-server postgis2_93
     48yum install postgresql94-server postgis2_94
    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.3 initdb
    54 service postgresql-9.3 start
    55 chkconfig postgresql-9.3 on
     53service postgresql-9.4 initdb
     54service postgresql-9.4 start
     55chkconfig postgresql-9.4 on
    5656}}}
    5757
     
    6363-bash-4.1$ createdb postgis
    6464-bash-4.1$ psql postgis
    65 psql (9.3.0)
     65psql (9.4.0)
    6666Type "help" for help.
    6767
     
    8484
    8585{{{
    86 [root@localhost ~]# yum install postgresql93-contrib
     86[root@localhost ~]# yum install postgresql94-contrib
    8787}}}
    8888