How to Install and Uninstall libpq-dev Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 19,2024

1. Install "libpq-dev" package

Please follow the instructions below to install libpq-dev on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libpq-dev

2. Uninstall "libpq-dev" package

Learn how to uninstall libpq-dev on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the libpq-dev package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libpq-dev
Architecture: amd64
Version: 9.5.25-0ubuntu0.16.04.1
Priority: optional
Section: libdevel
Source: postgresql-9.5
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 776
Depends: libc6 (>= 2.4), libpq5 (= 9.5.25-0ubuntu0.16.04.1), libssl-dev, krb5-multidev, comerr-dev
Suggests: postgresql-doc-9.5
Filename: pool/main/p/postgresql-9.5/libpq-dev_9.5.25-0ubuntu0.16.04.1_amd64.deb
Size: 156004
MD5sum: bbb37d047f25e481435a854f5516fcec
SHA1: daa860d260f49acad4b80188aa2017383bf9c005
SHA256: adc013ac8c410e9e1c9cff911088cc6bc5b7e3cda9e430d07f51a23fd77774b4
SHA512: bee8ecc8e5490e13a58dec6d950baf6ce0bd1c0c800dd4364ce7285b7527988473607a36d7a4e37f2f4a3cbdc73ce054caed78a523365e8319b6bd417109a283
Homepage: http://www.postgresql.org/
Description-en: header files for libpq5 (PostgreSQL library)
Header files and static library for compiling C programs to link
with the libpq library in order to communicate with a PostgreSQL
database backend.
.
PostgreSQL is an object-relational SQL database management system.
Description-md5: 7f4362b106aae6b219ccc880faa1f04c
Supported: 5y

Package: libpq-dev
Architecture: amd64
Version: 9.5.24-0ubuntu0.16.04.1
Priority: optional
Section: libdevel
Source: postgresql-9.5
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 776
Depends: libc6 (>= 2.4), libpq5 (= 9.5.24-0ubuntu0.16.04.1), libssl-dev, krb5-multidev, comerr-dev
Suggests: postgresql-doc-9.5
Filename: pool/main/p/postgresql-9.5/libpq-dev_9.5.24-0ubuntu0.16.04.1_amd64.deb
Size: 155722
MD5sum: 7bd272c6485237fbaee2b49d54806d67
SHA1: 2ba073b128718eb8cefb3d04d3cb543ade8e390c
SHA256: 97e74f7d793e32b55ad96c3b884ca6cf7fc05377c410dbf463f3c65af16e4921
SHA512: 49fe3b91e5bad4e8d99c34cd2d49050163928b5742ba3ab27276c9bf5ba562ea3c0adf139d47696b635e766fc7c25075c8e8c9438fc0bfa46b6f2464688705e9
Homepage: http://www.postgresql.org/
Description-en: header files for libpq5 (PostgreSQL library)
Header files and static library for compiling C programs to link
with the libpq library in order to communicate with a PostgreSQL
database backend.
.
PostgreSQL is an object-relational SQL database management system.
Description-md5: 7f4362b106aae6b219ccc880faa1f04c
Supported: 5y

Package: libpq-dev
Priority: optional
Section: libdevel
Installed-Size: 760
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Source: postgresql-9.5
Version: 9.5.2-1
Depends: libc6 (>= 2.4), libpq5 (= 9.5.2-1), libssl-dev, krb5-multidev, comerr-dev
Suggests: postgresql-doc-9.5
Filename: pool/main/p/postgresql-9.5/libpq-dev_9.5.2-1_amd64.deb
Size: 153928
MD5sum: 178a8234013a6f540846b06b71385acd
SHA1: f151f1a4ea71718499d051499c8695f9d975fd6f
SHA256: 20ec7764865e44f74afec4b589b8aaa85103828c8eb85f543c6b0056ce9d2826
Description-en: header files for libpq5 (PostgreSQL library)
Header files and static library for compiling C programs to link
with the libpq library in order to communicate with a PostgreSQL
database backend.
.
PostgreSQL is an object-relational SQL database management system.
Description-md5: 7f4362b106aae6b219ccc880faa1f04c
Homepage: http://www.postgresql.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m