Installing PostGIS on AlmaLinux 8 or Rocky Linux 8 x86_64¶
前提条件¶
インストールプロセスを開始する前に:
- 同じホストにEDB Postgres Advanced Serverをインストールします。
Installing EDB Postgres Advanced Server を参照してください。
リポジトリをセットアップする
リポジトリーの設定は1回限りのタスクです。リポジトリを既に設定している場合、この手順を実行する必要はありません。
- リポジトリをセットアップするには、
EDB repositories に移動し、そこに表示される指示に従います。
他の前提条件に対処する
shell # Install the EPEL repository: sudo dnf -y install epel-release # Enable additional repositories to resolve dependencies: sudo dnf config-manager --set-enabled PowerTools # 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:
sudo dnf -y install edb-as11-postgis
<xx> はEDB Postgres Advanced Serverのバージョンです。 <xx>
を、使用しているEDB Postgres Advanced
Serverのバージョンに置き換えます。たとえば、edb-as14-postgis32 。