repmgrd command not found

In this troubleshooting guide we learn how to fix repmgrd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

repmgrd: command not found

or when using sudo you get the following error message

sudo: repmgrd: command not found

Solutions to repmgrd: command not found

How To Fix repmgrd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu repmgrd is provided by repmgr-common package.

repmgr-common is:

repmgr is an open-source tool suite for managing replication and failover in a cluster of PostgreSQL servers. It enhances PostgreSQL’s built-in hot-standby capabilities with tools to set up standby servers, monitor replication, and perform administrative tasks such as failover or manual switchover operations.

This package contains repmgr files common to all versions.

To fix this problem, we can install more using the command below.

sudo apt-get -y install repmgr-common

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install repmgr-common.

sudo apt -y install repmgr-common

Or if you have aptitude installed you can use the following command.

sudo aptitude install repmgr-common

Summary

In this tutorial we learn how to fix repmgrd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.