Install PostgreSQL server on CentOS 7


Install PostgreSQL package:

yum install

Now install the server itself:

yum install postgresql96-server postgresql96-contrib

If you use PostgreSQL with PHP then also install PHP client library:

yum install php-pgsql

Initialize new database cluster:

postgresql96-setup initdb

Now it's ready to work:

service postgresql-9.6 start
Rate this post:
Share this page:

See also how to:

How to install PHP FastCGI Process Manager (FPM) on CentOS 7
A very simple steps to install PHP 7 on CentOS 7
How to install Java runtime environment on CentOS 7
How to install MySQL database server on CentOS 7
How to install NGINX web-server on Linux and confiure its basic settings