How To Install libpq on Fedora 36
Introduction
In this tutorial we learn how to install libpq
on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libpq.
Install libpq on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the libpq
package we can use the following command:
sudo dnf remove libpq
libpq Package Contents on Fedora 36
---
title: "How To Install libpq on Fedora 36"
linkTitle: "libpq"
type: "docs"
description: "In this tutorial we learn how to install libpq in Fedora 36. libpq is PostgreSQL client library"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/libpq-featured.png
---
## Introduction
In this tutorial we learn how to install `libpq` on Fedora 36.
### 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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libpq.
## Install libpq on Fedora 36 Using dnf
Update yum database with `dnf` using the following command.
```bash
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 Fedora 36 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 Fedora 36
To uninstall only the libpq
package we can use the following command:
sudo dnf remove libpq
libpq Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/9577489f6b4e1b2c095b4ff82cbc18ca208d6a
/usr/lib/libpq.so.5
/usr/lib/libpq.so.5.14
/usr/share/licenses/libpq
/usr/share/licenses/libpq/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/el/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/ko/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/sv/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/uk/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-14.mo
/usr/share/pgsql
/usr/share/pgsql/pg_service.conf.sample
/usr/lib/.build-id
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/0fc56e4ff30b904a3928118268f160d083d51f
/usr/lib64/libpq.so.5
/usr/lib64/libpq.so.5.14
/usr/share/licenses/libpq
/usr/share/licenses/libpq/COPYRIGHT
/usr/share/locale/cs/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/de/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/el/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/es/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/fr/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/ja/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/ko/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/ru/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/sv/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/uk/LC_MESSAGES/libpq5-14.mo
/usr/share/locale/zh_CN/LC_MESSAGES/libpq5-14.mo
/usr/share/pgsql
/usr/share/pgsql/pg_service.conf.sample
References
Summary
In this tutorial we learn how to install libpq
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
## References
* [libpq website](http://www.postgresql.org/)
## Summary
In this tutorial we learn how to install `libpq` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).