How to Install and Uninstall libpq5 Package on Debian 12 (Bookworm)

Last updated: May 20,2024

1. Install "libpq5" package

Here is a brief guide to show you how to install libpq5 on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install libpq5

2. Uninstall "libpq5" package

This guide covers the steps necessary to uninstall libpq5 on Debian 12 (Bookworm):

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

3. Information about the libpq5 package on Debian 12 (Bookworm)

Package: libpq5
Source: postgresql-15
Version: 15.6-0+deb12u1
Installed-Size: 850
Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Depends: libc6 (>= 2.33), libgssapi-krb5-2 (>= 1.17), libldap-2.5-0 (>= 2.5.4), libssl3 (>= 3.0.0)
Description: PostgreSQL C client library
Description-md5: 4109d08c168c8058d09c0cc8bf8b18b1
Homepage: http://www.postgresql.org/
Multi-Arch: same
Section: libs
Priority: optional
Filename: pool/updates/main/p/postgresql-15/libpq5_15.6-0+deb12u1_amd64.deb
Size: 187788
SHA256: 1b0b82bdf54dab8ee7ae10e4d560273e5f439090f19adead0c3a8b52bd7c09f4

Package: libpq5
Source: postgresql-15
Version: 15.5-0+deb12u1
Installed-Size: 850
Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Depends: libc6 (>= 2.33), libgssapi-krb5-2 (>= 1.17), libldap-2.5-0 (>= 2.5.4), libssl3 (>= 3.0.0)
Description: PostgreSQL C client library
Description-md5: 4109d08c168c8058d09c0cc8bf8b18b1
Multi-Arch: same
Homepage: http://www.postgresql.org/
Tag: role::shared-lib
Section: libs
Priority: optional
Filename: pool/main/p/postgresql-15/libpq5_15.5-0+deb12u1_amd64.deb
Size: 187140
MD5sum: 6579a450974ed11308da0e88189484fc
SHA256: 778a37a094d2ea0d744c293522083aead4973bb361e0543c225b53b2ae15c674