Installing Postgres 8.3x Latest on Centos 5 with yum

By | July 27, 2009

Install postgresql on centos the quick and easy way

First we download and install the yum package:

rpm -ivh
yum -y postgresql-libs \
postgresql-devel \
postgresql \
postgresql-server \

This will install the libraries server and all oher packages needed.
once yum has completed, we have to initialize the db.

service postgresql initdb
service postgresql start
cd /usr/share/pgsql/contrib
psql -U postgres < adminpack.sql

The above command, has initialized the database, started the postgres db engine, and install the pgsql adminpack also known as the contrib pack.

Postgres is now installed and ready to use.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.