How to Install and Uninstall libpq5 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: June 29,2024

1. Install "libpq5" package

This tutorial shows how to install libpq5 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libpq5

2. Uninstall "libpq5" package

Please follow the guidance below to uninstall libpq5 on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove libpq5 $ sudo apt autoclean && sudo apt autoremove

3. Information about the libpq5 package on Ubuntu 21.04 (Hirsute Hippo)

Package: libpq5
Architecture: amd64
Version: 13.3-0ubuntu0.21.04.1
Multi-Arch: same
Priority: optional
Section: libs
Source: postgresql-13
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 400
Depends: libc6 (>= 2.33), libgssapi-krb5-2 (>= 1.17), libldap-2.4-2 (>= 2.4.7), libssl1.1 (>= 1.1.0)
Filename: pool/main/p/postgresql-13/libpq5_13.3-0ubuntu0.21.04.1_amd64.deb
Size: 115664
MD5sum: bfcb7605c479501528c6aac680ce0548
SHA1: 696130a64343cd7237793a55ff89103ff1c2e521
SHA256: 8c81bfaf8c96be9e02b97c80957a80d10675eb74d6f294bed00526d62991f671
SHA512: 8f3fdc37b3c5fbefe995c34c682537852ce9103265a92f2c9dd0f72f977e16249316666cd9afd046caff078c3dcb171a50b042073952194a179edf27934561b9
Homepage: http://www.postgresql.org/
Description-en: PostgreSQL C client library
libpq is a C library that enables user programs to communicate with
the PostgreSQL database server. The server can be on another machine
and accessed through TCP/IP. This version of libpq is compatible
with servers from PostgreSQL 8.2 or later.
.
This package contains the run-time library, needed by packages using
libpq.
.
PostgreSQL is an object-relational SQL database management system.
Description-md5: 4109d08c168c8058d09c0cc8bf8b18b1
Task: postgresql-server, ubuntustudio-video, ubuntustudio-publishing, ubuntustudio-photography, ubuntustudio-graphics

Package: libpq5
Architecture: amd64
Version: 13.2-1
Multi-Arch: same
Priority: optional
Section: libs
Source: postgresql-13
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 404
Depends: libc6 (>= 2.33), libgssapi-krb5-2 (>= 1.17), libldap-2.4-2 (>= 2.4.7), libssl1.1 (>= 1.1.0)
Filename: pool/main/p/postgresql-13/libpq5_13.2-1_amd64.deb
Size: 116572
MD5sum: 00471678a3c18edb250d6004a34a5818
SHA1: 3288dc1372667f52cb741e6de20a7106ecceb299
SHA256: 9522c1c5050cc03ffe86cf668c43ff46ae46f87e85b80b55040d74df9cbdfa85
SHA512: 9880a75b939f5fce77558e33c6453b47bf655fa39e154ace920616d5bc89adf50bcf60ac96f86415482ebdf2b15a178b6b3641fe6800c7aae1f2661e7317765c
Homepage: http://www.postgresql.org/
Description-en: PostgreSQL C client library
libpq is a C library that enables user programs to communicate with
the PostgreSQL database server. The server can be on another machine
and accessed through TCP/IP. This version of libpq is compatible
with servers from PostgreSQL 8.2 or later.
.
This package contains the run-time library, needed by packages using
libpq.
.
PostgreSQL is an object-relational SQL database management system.
Description-md5: 4109d08c168c8058d09c0cc8bf8b18b1
Task: postgresql-server, ubuntustudio-video, ubuntustudio-publishing, ubuntustudio-photography, ubuntustudio-graphics