Installing PostGIS on RHEL 8 or OL 8 x86_64

前提条件

インストールプロセスを開始する前に:

  • 同じホストにEDB Postgres Advanced Serverをインストールします。

    Installing EDB Postgres Advanced Server を参照してください。

  • リポジトリをセットアップする

リポジトリーの設定は1回限りのタスクです。リポジトリを既に設定している場合、この手順を実行する必要はありません。

リポジトリをセットアップするには、

EDB repositories に移動し、そこに表示される指示に従います。

  • その他の前提条件に対処する

# Install the EPEL repository:
sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

# Enable additional repositories to resolve dependencies:
ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"

#  Disable the built-in PostgreSQL module:
sudo dnf -qy module disable postgresql

パッケージをインストールする

#  To install PostGIS 3.2:

sudo dnf -y install edb-as<xx>-postgis32

#  To install PostGIS 3.1 using EDB Postgres Advanced Server 13-14:

sudo dnf -y install edb-as<xx>-postgis3

#  To install PostGIS 3.1 using EDB Postgres Advanced Server 11-12:

sudo dnf -y install edb-as<xx>-postgis

<xx> はEDB Postgres Advanced Serverのバージョンです。 <xx> を、使用しているEDB Postgres Advanced Serverのバージョンに置き換えます。たとえば、edb-as14-postgis32 。