Installing PostGIS on RHEL 7 or OL 7 x86_64 v3.2

Prerequisites

Before you begin the installation process:

  • Install EDB Postgres Advanced Server on the same host. See Installing EDB Postgres Advanced Server.

  • Set up the repository

    Setting up the repository is a one-time task. If you have already set up your repository, you do not need to perform this step.

    To set up the repository, go to EDB repositories and follow the instructions provided there.

  • Address other prerequisites

    # Install the EPEL repository:
    sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    # Enable additional repositories to resolve dependencies:
    subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"  --enable "rhel-ha-for-rhel-*-server-rpms"

Install the package

# To install PostGIS 3.2:
sudo yum -y install edb-as<xx>-postgis32

# To install PostGIS 3.1 using EDB Postgres Advanced Server 13-14:
sudo yum -y install edb-as<xx>-postgis3

# To install PostGIS 3.1 using EDB Postgres Advanced Server 10-11:
sudo yum -y install edb-as<xx>-postgis

Where <xx> is the version of EDB Postgres Advanced Server. Replace <xx> with the version of EDB Postgres Advanced Server you are using. For example, edb-as14-postgis32.