Initializing help system before first use

Installing PostgreSQL on RHEL

If your server has internet access you can install PostgreSQL by following the instructions below. If you cannot access the online PostgreSQL repository then you can skip to the next section for an alternative method of installation.
First, the PostgreSQL repository package for the version of Red Hat Enterprise Linux you are running needs to be installed. This will allow the system to locate the required PostgreSQL packages, see: http://yum.postgresql.org/repopackages.php.
  1. As the root user, locate the downloaded PostgreSQL repository package RPM following the instructions above.
  2. Install the repository package:
    yum localinstall pgdg-redhat-repo-latest.noarch.rpm -y
  3. Install PostgreSQL:
    • For RHEL7: yum install postgresql11-server-11.8-1PGDG.rhel7 -y
    • For RHEL6: yum install postgresql11-server-11.8-1PGDG.rhel6 -y