Installing Postgresql 9.5 To setup YUM repositories, first disable the default postgres repo Edit the /etc/yum/pluginconf.d/rhnplugin.conf [main] section and append the following line exclude=postgresql* Install the official PGDG RPM file. Go to http://yum.postgresql.org and find your correct RPM. For e.g. to install Postgres 9.5 on 64 bit RHEL yum localinstall http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-redhat95-9.5-2.noarch.rpm Note:…