At the time of writing this book, the most recent version of repmgr is 3.2.1. As with Barman, repmgr is available within the PostgreSQL package repositories. If you are using a Debian or Ubuntu-based system, follow the instructions at the following URL:
https://wiki.postgresql.org/wiki/Apt
It will provide instructions to add the PostgreSQL repository to any system that will be running as a repmgr server or client.
Otherwise, Red Hat-based systems should add the PostgreSQL repository by installing the derivative-appropriate RPM located at this URL:
https://yum.postgresql.org/repopackages.php
We recommend that you use repositories only, as the repository-provided packages perform tasks other than software installation, such as ...