Postgres Offline Install / CentOS 7
Online install guide is here.
The installation guide we given above will up-to-date on every new postgres release, but we are going to introduce how to do offline install.
RPM
Some people may probably think about download the RPM file and simply bring it to the offline environment.
It is correct way for install software with RPM in offline environment, but we need download full package for offline install.
Here is the 9.5 version postgres offline install steps.
rpm –Uvh postgresql95-9.5.9-1PGDG.rhel6.x86_64.rpm
rpm –Uvh postgresql95-libs-9.5.9-1PGDG.rhel6.x86_64.rpm
rpm –Uvh postgresql95-server-9.5.9-1PGDG.rhel6.x86_64.rpm
rpm –Uvh postgresql95-contrib-9.5.9-1PGDG.rhel6.x86_64.rpm
Hope this can save your time.