How to Install and Uninstall postgresql-client-12 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 26,2024

1. Install "postgresql-client-12" package

Please follow the steps below to install postgresql-client-12 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install postgresql-client-12

2. Uninstall "postgresql-client-12" package

Please follow the step by step instructions below to uninstall postgresql-client-12 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove postgresql-client-12 $ sudo apt autoclean && sudo apt autoremove

3. Information about the postgresql-client-12 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: postgresql-client-12
Architecture: amd64
Version: 12.17-0ubuntu0.20.04.1
Multi-Arch: foreign
Priority: optional
Section: database
Source: postgresql-12
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3716
Provides: postgresql-client
Depends: libpq5 (>= 12.17), postgresql-client-common (>= 182~), sensible-utils, libc6 (>= 2.17), libedit2 (>= 3.1-20180525-0), zlib1g (>= 1:1.1.4)
Suggests: postgresql-12, postgresql-doc-12
Conflicts: postgresql-server-dev-12 (<< 12.1-2~)
Replaces: postgresql-server-dev-12 (<< 12.1-2~)
Filename: pool/main/p/postgresql-12/postgresql-client-12_12.17-0ubuntu0.20.04.1_amd64.deb
Size: 1053316
MD5sum: c804f930c5129118395c8f847147df77
SHA1: ddae3e93cf3e6737e9f9051c75ec733050f70a0f
SHA256: 570d9a3fc30f3b111db082d1a0830ac4568466e8943a0c40f2230b6fdd315b32
SHA512: 661b1227acfa3d0afbbb4320c0737f8d4f9b7b0042e8571fe7f50f6b8df78a0095dee9e17204a0adfaea7552f888b9d8a6c6300c16f5c20408bb7ed9dc7d1534
Homepage: http://www.postgresql.org/
Description: front-end programs for PostgreSQL 12
Description-md5: bd49bcc3b2493825f13d9410f3ad9e68
Task: postgresql-server

Package: postgresql-client-12
Architecture: amd64
Version: 12.2-4
Multi-Arch: foreign
Priority: optional
Section: database
Source: postgresql-12
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3660
Provides: postgresql-client
Depends: libpq5 (>= 12.2), postgresql-client-common (>= 182~), sensible-utils, libc6 (>= 2.17), libedit2 (>= 3.1-20180525-0), zlib1g (>= 1:1.1.4)
Suggests: postgresql-12, postgresql-doc-12
Conflicts: postgresql-server-dev-12 (<< 12.1-2~)
Replaces: postgresql-server-dev-12 (<< 12.1-2~)
Filename: pool/main/p/postgresql-12/postgresql-client-12_12.2-4_amd64.deb
Size: 1041704
MD5sum: abe0b454eda6cde5e3831ac67e9b161c
SHA1: 1381873b7788200bcce106e283419190d737eda1
SHA256: f77288f70779867455c0ddfb69d3e7cc8dbff39021a97de6f8e88c81dda5a970
Homepage: http://www.postgresql.org/
Description: front-end programs for PostgreSQL 12
Description-md5: bd49bcc3b2493825f13d9410f3ad9e68
Task: postgresql-server

5. The same packages on other Linux Distributions