Installing Slony Replication on a CentOS/Rocky Linux/AlmaLinux Host v2.2.10

Before creating the repository configuration file, you must have credentials that allow access to the EnterpriseDB repository. If you need credentials, visit the EDB website.

Follow the steps given below to install Slony Replication:

  1. To create the repository configuration file, assume superuser privileges and invoke one of the following platform-specific commands:

    On CentOS 7:

    yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm

    On Rocky Linux 8 or AlmaLinux 8:

    dnf -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
  2. Replace the USERNAME:PASSWORD variable in the following command with the username and password of a registered EnterpriseDB user:

    sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo
  3. Before installing Slony, execute the following command to install the Extra Packages for Enterprise Linux (EPEL) release package:

    On CentOS 7:

    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

    On Rocky Linux 8 or AlmaLinux 8:

    dnf -y install epel-release
  4. For Rocky Linux 8 or AlmaLinux 8, enable the PowerTools repository to satisfy package dependencies:

    dnf config-manager --set-enabled PowerTools
  5. For Rocky Linux 8 or AlmaLinux 8, disable the built-in PostgreSQL module:

    dnf -qy module disable postgresql
  6. Use the following platform-specific command to install Slony:

    On CentOS 7:

    yum -y install edb-as<xx>-slony-replication

    Where <xx> is the Slony version you want to install.

    On Rocky Linux 8 or AlmaLinux 8:

    dnf -y install edb-as<xx>-slony-replication

    Where <xx> is the Slony version you want to install.

    To install Slony 2.2.10 on Rocky Linux 8 or AlmaLinux 8 for EDB Postgres Advanced Server version 13, the command is:

    dnf -y install edb-as13-slony-replication

Installing Slony on an RHEL Host

Before installing the repository configuration file, you must have credentials that allow access to the EnterpriseDB repository. For information about requesting credentials, visit the EDB website.

Follow the steps given below to install Slony Replication:

  1. To create the repository configuration file, assume superuser privileges and invoke one of the following platform-specific commands:

    On RHEL 7:

    yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm

    On RHEL 8:

    dnf -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
  2. Replace the USERNAME:PASSWORD variable in the following command with the username and password of a registered EnterpriseDB user:

    sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo
  3. Before installing Slony, execute the following command to install the Extra Packages for Enterprise Linux (EPEL) release package:

    On RHEL 7:

    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

    On RHEL 8:

    dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
  4. Enable the repository:

    On RHEL 7, enable the optional, extras, and HA repositories to satisfy package dependencies:

    subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"  --enable "rhel-ha-for-rhel-*-server-rpms"

    On RHEL 8, enable the codeready-builder-for-rhel-8-*-rpms repository to satisfy package dependencies:

    ARCH=$( /bin/arch )
    
    subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms"
  5. For RHEL 8, disable the built-in PostgreSQL module:

    dnf -qy module disable postgresql
  6. Use the following platform-specific command to install Slony:

    On RHEL 7:

    yum -y install edb-as13-slony-replication

    Where <xx> is the Slony version you want to install.

    On RHEL 8:

    dnf -y install edb-as13-slony-replication

    Where <xx> is the Slony version you want to install.

    To install Slony 2.2.10 on RHEL 8 for EDB Postgres Advanced Server version 13, use the following command:

    dnf -y install edb-as13-slony-replication

    The following table lists the path to the service, installation, and configuration file.

PlatformService File PathInstallation File PathConfiguration File Path
RHEL/CentOS 7 and RHEL/Rocky Linux/AlmaLinux 8/usr/lib/systemd/system/edb-slony-replication-<xx>.service/usr/edb/as<xx>The configuration file slony-replication.ini is located in /etc/edb/slony-replication<xx>

In the above table, <xx> represents the EDB Postgres Advanced Server version.

Installing Slony on an RHEL/CentOS 7 PPCLE Host

Before installing the repository configuration file, you must have credentials that allow access to the EnterpriseDB repository. For information about requesting credentials, visit the EDB website.

Perform the following steps to install Slony on an RHEL/CentOS 7 PPC64LE Host:

  1. Install Advance Toolchain:

    rpm --import https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL7/gpg-pubkey-6976a827-5164221b
    
    cat > /etc/yum.repos.d/advance-toolchain.repo <<EOF
    
    # Beginning of the configuration file
    [advance-toolchain]
    name=Advance Toolchain IBM FTP
    baseurl=https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL7
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=ftp://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHELX/gpg-pubkey-6976a827-5164221b
    # End of the configuration file
  2. To create the repository configuration file, assume superuser privileges and invoke the following command:

    yum -y install https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
  3. Replace the USERNAME:PASSWORD variable in the following command with the username and password of a registered EnterpriseDB user:

    sed -i "s@<username>:<password>@USERNAME:PASSWORD@" /etc/yum.repos.d/edb.repo
  4. Before installing Slony, execute the following command to install the Extra Packages for Enterprise Linux (EPEL) release package:

    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  5. On RHEL 7, enable the optional, extras, and HA repositories to satisfy additional package dependencies:

    subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"  --enable "rhel-ha-for-rhel-*-server-rpms"
  6. Invoke the following command to install Slony:

    yum -y install edb-as<xx>-slony-replication

    Where <xx> is the Slony version you want to install.