install postgresql-client centos 7 code example
Example 1: install postgresql centos 5
# centos 5 32bit
rpm -Uvh http://yum.postgresql.org/9.1/redhat/rhel-5-i386/pgdg-centos91-9.1-4.noarch.rpm
yum install postgresql91-server
/etc/init.d/postgresql-9.1 initdb
service postgresql-9.1 start
chkconfig postgresql-9.1 on
Example 2: install postgresql 10 centos 7
# /usr/pgsql-10/bin/postgresql-10-setup initdb
Initializing database ... OK