How to Install and Uninstall libpq-dev Package on Debian 12 (Bookworm)

Last updated: May 15,2024

1. Install "libpq-dev" package

Please follow the instructions below to install libpq-dev on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install libpq-dev

2. Uninstall "libpq-dev" package

Here is a brief guide to show you how to uninstall libpq-dev on Debian 12 (Bookworm):

$ sudo apt remove libpq-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the libpq-dev package on Debian 12 (Bookworm)

Package: libpq-dev
Source: postgresql-15
Version: 15.6-0+deb12u1
Installed-Size: 576
Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Depends: libpq5 (= 15.6-0+deb12u1), libssl-dev
Suggests: postgresql-doc-15
Description: header files for libpq5 (PostgreSQL library)
Description-md5: 7f4362b106aae6b219ccc880faa1f04c
Homepage: http://www.postgresql.org/
Section: libdevel
Priority: optional
Filename: pool/updates/main/p/postgresql-15/libpq-dev_15.6-0+deb12u1_amd64.deb
Size: 142484
SHA256: e80088949a704f9992f0db01ff4292bb70543567e2ab7548948da6a43f3b2319

Package: libpq-dev
Source: postgresql-15
Version: 15.5-0+deb12u1
Installed-Size: 577
Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Depends: libpq5 (= 15.5-0+deb12u1), libssl-dev
Suggests: postgresql-doc-15
Description: header files for libpq5 (PostgreSQL library)
Description-md5: 7f4362b106aae6b219ccc880faa1f04c
Homepage: http://www.postgresql.org/
Tag: devel::library, role::devel-lib
Section: libdevel
Priority: optional
Filename: pool/main/p/postgresql-15/libpq-dev_15.5-0+deb12u1_amd64.deb
Size: 142164
MD5sum: 23cdf7e19574d4629cbece4bfdbf2610
SHA256: ec40f714dd0ed9f175cc64a95a70e0b948bb854c066242ddd05cfca006c40e34