How To Install libpq on Rocky Linux 8
Introduction
In this tutorial we learn how to install libpq
on Rocky Linux 8.
What is libpq
The libpq package provides the essential shared library 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
or dnf
to install libpq
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libpq.
Install libpq on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libpq
using dnf
by running the following command:
sudo dnf -y install libpq
Install libpq on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libpq
using yum
by running the following command:
sudo yum -y install libpq
How To Uninstall libpq on Rocky Linux 8
To uninstall only the libpq
package we can use the following command:
sudo dnf remove libpq
libpq Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/10827decd7d753cf26542d87968544e334182f
/usr/lib64/libpq.so.5
/usr/lib64/libpq.so.5.13
/usr/share/licenses/libpq
/usr/share/licenses/libpq/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/it/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ko/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/sv/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/tr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/uk/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-13.mo
/usr/share/pgsql
/usr/share/pgsql/pg_service.conf.sample
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/88ee38bf9950e942e90bc8ea958090ddaeb386
/usr/lib64/libpq.so.5
/usr/lib64/libpq.so.5.13
/usr/share/licenses/libpq
/usr/share/licenses/libpq/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/it/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ko/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/sv/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/tr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/uk/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-13.mo
/usr/share/pgsql
/usr/share/pgsql/pg_service.conf.sample
/usr/lib/.build-id
/usr/lib/.build-id/36
/usr/lib/.build-id/36/7854425127eb1ac1be7a3b09348c0d7b005b7a
/usr/lib/libpq.so.5
/usr/lib/libpq.so.5.13
/usr/share/licenses/libpq
/usr/share/licenses/libpq/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/it/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ko/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/sv/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/tr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/uk/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-13.mo
/usr/share/pgsql
/usr/share/pgsql/pg_service.conf.sample
/usr/lib/.build-id
/usr/lib/.build-id/df
/usr/lib/.build-id/df/8a8a281581375c4e0a10273c1b75229de5b364
/usr/lib/libpq.so.5
/usr/lib/libpq.so.5.13
/usr/share/licenses/libpq
/usr/share/licenses/libpq/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/it/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ko/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/sv/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/tr/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/uk/LC_MESSAGES/libpq5-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-13.mo
/usr/share/pgsql
/usr/share/pgsql/pg_service.conf.sample
References
Summary
In this tutorial we learn how to install libpq
on Rocky Linux 8 using yum and dnf.