If you need to uninstall repmgr, please refer to the section below appropriate for your distribution/installation method. If you are unable to find an appropriate method or have any questions, please contact our mailing list/discussion forum at Google Groups. Note that usually you'll need access to the system's root account to carry out the actions described here.
rpm (Red Hat / Fedora / CentOS / Scientific Linux / Oracle Linux)
yum uninstall is the recommended way to uninstall RPM packages.
If the package was installed directly (i.e. not from a YUM repository),
rpm -e repmgr.
deb (Debian, Ubuntu and derivatives)
apt-get remove repmgr.
Ensure that any running
repmgrd instances have been
stopped. From the repmgr source directory, execute:
sudo make uninstall
or if the installation was not carried out by the root user:
repmgr 4 and later
From repmgr 4.0, repmgr is implemented as a PostgreSQL extension. After removing the repmgr software by one of the methods described above, you may need to remove the repmgr extension with:
DROP EXTENSION IF EXISTS repmgr CASCADE
See the PostgreSQL documentation for details of the DROP EXTENSION command.