This tutorial explains how to install PostgreSQL from the official PostgreSQL repository. This method allows you to install newer versions of PostgreSQL for example 9.0 if you need the newest cluster functionality delivered with upcoming PostgreSQL 9.1 you need to build the software manual as long as there is no 9.1 repository available.
If you want to install the stable 8.4 version delivered with CentOS I wrote this tutorial.
1. Download yum repository rpm for your arch and version you want to use:
- install rpm file
rpm -i <file>.rpm
- modify CentOS Repository
add this line:
should look like this:
- install PostgreSQL
yum install postgresql-server
service postgresql initdb
- start service
service postgresql start
- if you want postgresql to be started at boot time run this:
chkconfig --levels 35 postgresql on