1# centos 5 32bit
2rpm -Uvh http://yum.postgresql.org/9.1/redhat/rhel-5-i386/pgdg-centos91-9.1-4.noarch.rpm
3yum install postgresql91-server
4/etc/init.d/postgresql-9.1 initdb
5service postgresql-9.1 start
6chkconfig postgresql-9.1 on
1# yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm -y
2
1# systemctl enable postgresql-10.service
2# systemctl start postgresql-10.service
3
1# yum install postgresql10 postgresql10-server postgresql10-contrib postgresql10-libs -y
2