How To Install postgresql-libs.x86_64 on Amazon Linux 2

In this tutorial we learn how to install postgresql-libs.x86_64 in Amazon Linux 2. postgresql-libs.x86_64 is The shared libraries required for any PostgreSQL clients

Introduction

In this tutorial we learn how to install postgresql-libs.x86_64 on Amazon Linux 2.

What is postgresql-libs.x86_64

The postgresql-libs package provides the essential shared libraries for any PostgreSQL client program or interface. You will need to install this package to use any other PostgreSQL package or any clients that need to connect to a PostgreSQL server.

We can use yum to install postgresql-libs.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install postgresql-libs.x86_64.

Install postgresql-libs.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install postgresql-libs.x86_64 using yum by running the following command:

sudo yum -y install postgresql-libs.x86_64

How To Uninstall postgresql-libs.x86_64 on Amazon Linux 2

To uninstall only the postgresql-libs.x86_64 package we can use the following command:

sudo yum remove postgresql-libs.x86_64

postgresql-libs.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libecpg.so.6
/usr/lib64/libecpg.so.6.4
/usr/lib64/libecpg_compat.so.3
/usr/lib64/libecpg_compat.so.3.4
/usr/lib64/libpgtypes.so.3
/usr/lib64/libpgtypes.so.3.3
/usr/lib64/libpq.so.5
/usr/lib64/libpq.so.5.5
/usr/share/doc/postgresql-libs-9.2.24
/usr/share/doc/postgresql-libs-9.2.24/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/cs/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/de/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/es/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/fr/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/it/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/it/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/ja/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/pl/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/pl/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/ru/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/tr/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/tr/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/ecpglib6-9.2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-9.2.mo
/usr/share/locale/zh_TW/LC_MESSAGES/libpq5-9.2.mo

References

Summary

In this tutorial we learn how to install postgresql-libs.x86_64 on Amazon Linux 2 using yum.