Install the Postgres distribution of your choice on each host in your cluster, then install the PGD software on top of it. Choose from EDB Postgres Advanced Server, EDB Postgres Extended Server, or community Postgres. The PGD package you install depends on the distribution and the Postgres version. Run all the commands on this page on every host in the cluster. Alternatively, download the packages and their dependencies on one host that can reach the EDB repositories, then transfer them to the other hosts and install them there.
Configuring the EDB repositories
Configure two repositories, one for the database software and one for the PGD software.
Set the following environment variables:
EDB_SUBSCRIPTION_TOKENis the token you received when you registered for your EDB subscription. It authenticates your access to the EDB repositories.EDB_SUBSCRIPTION_PLANis the type of subscription you have with EDB, which matches your Postgres distribution. Usestandardfor EDB Postgres Extended Server,enterprisefor EDB Postgres Advanced Server, orcommunityfor community Postgres.EDB_REPO_TYPEis the type of package manager you use, which tells the installer which type of package you need. Usedebfor Debian and Ubuntu, orrpmfor CentOS and Red Hat Enterprise Linux (RHEL).
For example, to configure the repositories on a RHEL host for EDB Postgres Extended Server:
export EDB_SUBSCRIPTION_TOKEN=XXXXXXXXXXXXXX export EDB_SUBSCRIPTION_PLAN=standard export EDB_REPO_TYPE=rpm
Run the following command to download and run a script that configures your package manager to use the EDB repository for databases:
curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_SUBSCRIPTION_PLAN/setup.$EDB_REPO_TYPE.sh" | sudo -E bash
Run the following command to download and run a script that configures your package manager to use the EDB repository for PGD:
curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/postgres_distributed/setup.$EDB_REPO_TYPE.sh" | sudo -E bash
Installing the database and PGD packages
Install the database and PGD packages with your package manager.
Set an environment variable to specify the major version of Postgres you want to install, for example
17for Postgres 17:export PG_VERSION=17
Set an environment variable to specify the package names for the database and PGD software. The package names vary depending on the database you use and the platform you're on.
EDB Postgres Advanced Server
The package names depend on your platform.
export EDB_PACKAGES="edb-as$PG_VERSION-server edb-pgd6-expanded-epas$PG_VERSION"
export EDB_PACKAGES="edb-as$PG_VERSION-server edb-pgd6-expanded-epas$PG_VERSION"
Run the installation command for your platform:
sudo apt install -y $EDB_PACKAGES
sudo dnf install -y $EDB_PACKAGES
The command installs the specified packages and any dependencies they require. When the installation completes, the database and PGD software are installed on the host.
For example, to install EDB Postgres Extended 17 with PGD on a RHEL host:
export PG_VERSION=17 export EDB_PACKAGES="edb-postgresextended$PG_VERSION-server edb-postgresextended$PG_VERSION-contrib edb-pgd6-expanded-pgextended$PG_VERSION" sudo dnf install -y $EDB_PACKAGES
Verifying the installation
List the installed database and PGD packages on each host:
dpkg -l | grep -i -E "edb|pgd|postgres"
rpm -qa | grep -i -E "edb|pgd"
The output includes the database packages and the PGD package for your distribution and Postgres version, for example edb-pgd6-expanded-pgextended17 for EDB Postgres Extended 17.
Next steps
Continue to Configuring the cluster.