Changes between Version 2 and Version 3 of UsersWikiPostGIS21CentOS6pgdg
- Timestamp:
- 12/18/14 19:09:58 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiPostGIS21CentOS6pgdg
v2 v3 30 30 A 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 31 31 32 For example, if you have a 64-bit OS and want to install PostgreSQL 9. 3:32 For example, if you have a 64-bit OS and want to install PostgreSQL 9.4: 33 33 {{{ 34 curl -O http://yum.postgresql.org/9. 3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm35 rpm -ivh pgdg-centos9 3-9.3-1.noarch.rpm34 curl -O http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm 35 rpm -ivh pgdg-centos94-9.4-1.noarch.rpm 36 36 }}} 37 37 … … 46 46 Install everything with: 47 47 {{{ 48 yum install postgresql9 3-server postgis2_9348 yum install postgresql94-server postgis2_94 49 49 }}} 50 50 51 51 Now 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): 52 52 {{{ 53 service postgresql-9. 3initdb54 service postgresql-9. 3start55 chkconfig postgresql-9. 3on53 service postgresql-9.4 initdb 54 service postgresql-9.4 start 55 chkconfig postgresql-9.4 on 56 56 }}} 57 57 … … 63 63 -bash-4.1$ createdb postgis 64 64 -bash-4.1$ psql postgis 65 psql (9. 3.0)65 psql (9.4.0) 66 66 Type "help" for help. 67 67 … … 84 84 85 85 {{{ 86 [root@localhost ~]# yum install postgresql9 3-contrib86 [root@localhost ~]# yum install postgresql94-contrib 87 87 }}} 88 88