PostgreSQL provides client installation packages and the required dynamic shared library packages for different OSs on its official website.
Ensure that the database client matches the DB engine version of your RDS PostgreSQL DB instances.
This following uses PostgreSQL 9.5 in Red Hat Linux 6 as an example to describe how to obtain the required installation package and complete the installation.
Find the link to the required version on the download page. postgresql95 is used as an example in the following figure.
Find the link to the required version on the download page. postgresql95-libs is used as an example in the following figure.
sudo rpm -ivh postgresql95-9.5.7-1PGDG.rhel6.x86_64.rpm postgresql95-libs-9.5.7-1PGDG.rhel6.x86_64.rpm
rpm -ivh --replacefiles postgresql95-9.5.7-1PGDG.rhel6.x86_64.rpm postgresql95-libs-9.5.7-1PGDG.rhel6.x86_64.rpm
rpm -ivh --nodeps postgresql95-9.5.7-1PGDG.rhel6.x86_64.rpm postgresql95-libs-9.5.7-1PGDG.rhel6.x86_64.rpm