Для установки PostgreSQL (64bit) на CentOS 7 выполните следующие команды:
wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-1.noarch.rpm
rpm -Uvh http://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-1.noarch.rpm
yum update
yum -y install postgresql96-server postgresql96-devel postgresql96-contrib
Инициализация базы данных postgresql:
/usr/pgsql-9.6/bin/postgresql96-setup initdb
Запустите службу postgresql и включите ее при загрузке:
systemctl enable postgresql-9.6
systemctl start postgresql-9.6