How to Install and Uninstall libpq5 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: June 29,2024

1. Install "libpq5" package

This guide let you learn how to install libpq5 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libpq5

2. Uninstall "libpq5" package

Learn how to uninstall libpq5 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the libpq5 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libpq5
Architecture: amd64
Version: 9.5.25-0ubuntu0.16.04.1
Multi-Arch: same
Priority: optional
Section: libs
Source: postgresql-9.5
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 268
Depends: libc6 (>= 2.14), libgssapi-krb5-2 (>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libssl1.0.0 (>= 1.0.0)
Filename: pool/main/p/postgresql-9.5/libpq5_9.5.25-0ubuntu0.16.04.1_amd64.deb
Size: 79226
MD5sum: 2ff483b4d5b7a0589120927fc26629ac
SHA1: f19bbb0065c396ab6eec7ae04c80134d8bf5574c
SHA256: eb35256aea88c17f33f2709b0db51d0584761d046214e640bceca6f36190199a
SHA512: 73d586d323a0bfa094d33d7c4b9c6b62e1c8f43876ad25bdabe46703f59ed5ad3f917b5d535e992fa24dd2f66bf6c170849976fe2a358a5dfde5de338e66f3c6
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
Supported: 5y

Package: libpq5
Architecture: amd64
Version: 9.5.24-0ubuntu0.16.04.1
Multi-Arch: same
Priority: optional
Section: libs
Source: postgresql-9.5
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 268
Depends: libc6 (>= 2.14), libgssapi-krb5-2 (>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libssl1.0.0 (>= 1.0.0)
Filename: pool/main/p/postgresql-9.5/libpq5_9.5.24-0ubuntu0.16.04.1_amd64.deb
Size: 79934
MD5sum: 9e6d4cd81198b6efdbcd80e155cfde9e
SHA1: ee0f41b6ddcc99b64d4ce8dc95be42efd0fffa15
SHA256: e8f3cce0a3210b869cb128219cb1fc2bbd2de393cc1c0f9fc25500da263540ae
SHA512: 8ecb63d9f1cf686be251648aaff88907003db49ec8a9644b923eb66d579cd1216b878e71df27938895c2b6418336e102ba881cfa6f504edb4cc90ec98e02f2b9
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
Supported: 5y

Package: libpq5
Priority: optional
Section: libs
Installed-Size: 260
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Source: postgresql-9.5
Version: 9.5.2-1
Depends: libc6 (>= 2.14), libgssapi-krb5-2 (>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libssl1.0.0 (>= 1.0.0)
Filename: pool/main/p/postgresql-9.5/libpq5_9.5.2-1_amd64.deb
Size: 76930
MD5sum: 8b603d6a5c5a7f7d2267f79910f170e0
SHA1: 161a5566ae0cc155906b67c561a29dd7d5b96fab
SHA256: bbae306d76c91c31cd02095103f12a0ad060ab6e88fe73aebf5206dd1d2a1894
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
Multi-Arch: same
Homepage: http://www.postgresql.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: postgresql-server