In this recipe, we are going to show the steps that are required to install PgBouncer.
We can either do a full source-based installation or use the operating system-specific package manager to install PgBouncer.
On an Ubuntu/Debian based system, we need to execute the following command to install PgBouncer:
apt-get install pgbouncer
On CentOS, Fedora, or Red Hat-based Linux distributions, we can execute the following command:
yum install pgbouncer
If you are doing a full source based installation, then the sequence of commands are mentioned here: