How To Install libpq-devel on Rocky Linux 8
Introduction
In this tutorial we learn how to install libpq-devel
on Rocky Linux 8.
What is libpq-devel
The libpq package provides the essential shared library for any PostgreSQL client program or interface. You will need to install this package to build any package or any clients that need to connect to a PostgreSQL server.
We can use yum
or dnf
to install libpq-devel
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libpq-devel.
Install libpq-devel 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-devel
using dnf
by running the following command:
sudo dnf -y install libpq-devel
Install libpq-devel 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-devel
using yum
by running the following command:
sudo yum -y install libpq-devel
How To Uninstall libpq-devel on Rocky Linux 8
To uninstall only the libpq-devel
package we can use the following command:
sudo dnf remove libpq-devel
libpq-devel Package Contents on Rocky Linux 8
/usr/bin/pg_config
/usr/include/libpq
/usr/include/libpq-events.h
/usr/include/libpq-fe.h
/usr/include/libpq/libpq-fs.h
/usr/include/pg_config-i386.h
/usr/include/pg_config.h
/usr/include/pg_config_ext-i386.h
/usr/include/pg_config_ext.h
/usr/include/pg_config_manual.h
/usr/include/pg_config_os.h
/usr/include/pgsql
/usr/include/pgsql/internal
/usr/include/pgsql/internal/c.h
/usr/include/pgsql/internal/libpq
/usr/include/pgsql/internal/libpq-int.h
/usr/include/pgsql/internal/libpq/pqcomm.h
/usr/include/pgsql/internal/port.h
/usr/include/pgsql/internal/postgres_fe.h
/usr/include/pgsql/internal/pqexpbuffer.h
/usr/include/postgres_ext.h
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/6d8d0520939c8c943dc630642c1bd7b85856be
/usr/lib/libpq.so
/usr/lib/pkgconfig/libpq.pc
/usr/share/locale/cs/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/de/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/es/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/fr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/he/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/it/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ja/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ko/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pl/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pt_BR/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ru/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/sv/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/tr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/uk/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/vi/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_config-13.mo
/usr/bin/pg_config
/usr/include/libpq
/usr/include/libpq-events.h
/usr/include/libpq-fe.h
/usr/include/libpq/libpq-fs.h
/usr/include/pg_config-i386.h
/usr/include/pg_config.h
/usr/include/pg_config_ext-i386.h
/usr/include/pg_config_ext.h
/usr/include/pg_config_manual.h
/usr/include/pg_config_os.h
/usr/include/pgsql
/usr/include/pgsql/internal
/usr/include/pgsql/internal/c.h
/usr/include/pgsql/internal/libpq
/usr/include/pgsql/internal/libpq-int.h
/usr/include/pgsql/internal/libpq/pqcomm.h
/usr/include/pgsql/internal/port.h
/usr/include/pgsql/internal/postgres_fe.h
/usr/include/pgsql/internal/pqexpbuffer.h
/usr/include/postgres_ext.h
/usr/lib/.build-id
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/53d6921a4ab574c06013ef112c282ad7fde2e8
/usr/lib/libpq.so
/usr/lib/pkgconfig/libpq.pc
/usr/share/locale/cs/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/de/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/es/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/fr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/he/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/it/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ja/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ko/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pl/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pt_BR/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ru/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/sv/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/tr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/uk/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/vi/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_config-13.mo
/usr/bin/pg_config
/usr/include/libpq
/usr/include/libpq-events.h
/usr/include/libpq-fe.h
/usr/include/libpq/libpq-fs.h
/usr/include/pg_config-x86_64.h
/usr/include/pg_config.h
/usr/include/pg_config_ext-x86_64.h
/usr/include/pg_config_ext.h
/usr/include/pg_config_manual.h
/usr/include/pg_config_os.h
/usr/include/pgsql
/usr/include/pgsql/internal
/usr/include/pgsql/internal/c.h
/usr/include/pgsql/internal/libpq
/usr/include/pgsql/internal/libpq-int.h
/usr/include/pgsql/internal/libpq/pqcomm.h
/usr/include/pgsql/internal/port.h
/usr/include/pgsql/internal/postgres_fe.h
/usr/include/pgsql/internal/pqexpbuffer.h
/usr/include/postgres_ext.h
/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/c4e308b01f6c9ffb1a5dbbe5cf44280fd9ac8a
/usr/lib64/libpq.so
/usr/lib64/pkgconfig/libpq.pc
/usr/share/locale/cs/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/de/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/es/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/fr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/he/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/it/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ja/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ko/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pl/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pt_BR/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ru/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/sv/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/tr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/uk/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/vi/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_config-13.mo
/usr/bin/pg_config
/usr/include/libpq
/usr/include/libpq-events.h
/usr/include/libpq-fe.h
/usr/include/libpq/libpq-fs.h
/usr/include/pg_config-x86_64.h
/usr/include/pg_config.h
/usr/include/pg_config_ext-x86_64.h
/usr/include/pg_config_ext.h
/usr/include/pg_config_manual.h
/usr/include/pg_config_os.h
/usr/include/pgsql
/usr/include/pgsql/internal
/usr/include/pgsql/internal/c.h
/usr/include/pgsql/internal/libpq
/usr/include/pgsql/internal/libpq-int.h
/usr/include/pgsql/internal/libpq/pqcomm.h
/usr/include/pgsql/internal/port.h
/usr/include/pgsql/internal/postgres_fe.h
/usr/include/pgsql/internal/pqexpbuffer.h
/usr/include/postgres_ext.h
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/48edc3ef4b0f0dedea8533d4a6a9669153c915
/usr/lib64/libpq.so
/usr/lib64/pkgconfig/libpq.pc
/usr/share/locale/cs/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/de/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/es/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/fr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/he/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/it/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ja/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ko/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pl/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/pt_BR/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/ru/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/sv/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/tr/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/uk/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/vi/LC_MESSAGES/pg_config-13.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pg_config-13.mo
References
Summary
In this tutorial we learn how to install libpq-devel
on Rocky Linux 8 using yum and dnf.