Installing Repmgr From Packages
Installing Repmgr From Packages
Installing Repmgr From Packages
6 Documentation
Prev Up Chapter 2. Installation Next
2.2.1. RedHat/CentOS/Fedora
repmgr RPM packages for RedHat/CentOS variants and Fedora are available from the 2ndQuadrant
public RPM repository; see following section for details.
RPM packages for repmgr are also available via Yum through the PostgreSQL Global Development Group
RPM repository (http://yum.postgresql.org/). Follow the instructions for your distribution (RedHat,
CentOS, Fedora, etc.) and architecture as detailed there. Note that it can take some days for new
repmgr packages to become available via the this repository.
For more information on the package contents, including details of installation paths and relevant
service commands, see the appendix section CentOS packages.
Beginning with repmgr 4.0.5, 2ndQuadrant provides a dedicated yum public RPM repository for
2ndQuadrant software, including repmgr. We recommend using this for all future repmgr releases.
General instructions for using this repository can be found on its homepage. Specific instructions for
installing repmgr follow below.
Installation
• Locate the repository RPM for your PostgreSQL version from the list at:
https://rpm.2ndquadrant.com/
• Install the repository RPM for your distribution and PostgreSQL version (this enables the
2ndQuadrant repository as a source of repmgr packages).
• Install the repmgr version appropriate for your PostgreSQL version (e.g. repmgr10):
The 2ndQuadrant repmgr yum repository packages use the same definitions and file system layout
as the main PGDG repository.
Normally yum will prioritize the repository with the most recent repmgr version. Once the PGDG
repository has been updated, it doesn't matter which repository the packages are installed from.
To ensure the 2ndQuadrant repository is always prioritised, install yum-plugin-priorities and set the
repository priorities accordingly.
To install a specific package version, execute yum --showduplicates list for the package in
question:
then append the appropriate version number to the package name with a hyphen, e.g.:
2.2.2. Debian/Ubuntu
.deb packages for repmgr are available from the PostgreSQL Community APT repository
(http://apt.postgresql.org/). Instructions can be found in the APT section of the PostgreSQL Wiki
(https://wiki.postgresql.org/wiki/Apt).
For more information on the package contents, including details of installation paths and relevant
service commands, see the appendix section Debian/Ubuntu packages.
Beginning with repmgr 4.0.5, 2ndQuadrant provides a public apt repository for 2ndQuadrant
software, including repmgr.
General instructions for using this repository can be found on its homepage. Specific instructions for
installing repmgr follow below.
Installation
• Install the repmgr version appropriate for your PostgreSQL version (e.g. repmgr10):
Note: For packages for PostgreSQL 9.6 and earlier, the package name includes a period
between major and minor version numbers, e.g. postgresql-9.6-repmgr.