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

Last updated: November 22,2024

1. Install "postgresql-client" package

This guide covers the steps necessary to install postgresql-client on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install postgresql-client

2. Uninstall "postgresql-client" package

Learn how to uninstall postgresql-client on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: postgresql-client
Architecture: all
Version: 12+214ubuntu0.1
Multi-Arch: foreign
Priority: optional
Section: database
Source: postgresql-common (214ubuntu0.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 66
Depends: postgresql-client-12
Filename: pool/main/p/postgresql-common/postgresql-client_12+214ubuntu0.1_all.deb
Size: 3940
MD5sum: 5a7970ed733b1a22a273b1848bfd09a9
SHA1: 92a1e3fdf94525414b5dd3c9f2f67028dae503a4
SHA256: 2bf5435802e3121c2e08318abb440de318cb719e56daa7f87731467c15d90d32
SHA512: 62b81cc356162de73ef488cf34f79b2ce0d53330a79e4f32fee3ec3366d21ffb5cb3444a84bb2082c2d01b675deea6db21b74dc5c23ef66658f2537730e146af
Description: front-end programs for PostgreSQL (supported version)
Description-md5: d46431edbfde0d6360f2c20aed4a288c
Task: postgresql-server

Package: postgresql-client
Architecture: all
Version: 12+214
Multi-Arch: foreign
Priority: optional
Section: database
Source: postgresql-common (214)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 66
Depends: postgresql-client-12
Filename: pool/main/p/postgresql-common/postgresql-client_12+214_all.deb
Size: 4012
MD5sum: ba54e24b6fde97230e3b7cddeac5dcd1
SHA1: 115b6bd2bb291636f96d3c01b14da92ff9b09c46
SHA256: fb0780d4d7920cbc7a0ba972c9d8f7be46a5a12c9d4c91c0a89c1d4add46afe1
Description: front-end programs for PostgreSQL (supported version)
Description-md5: d46431edbfde0d6360f2c20aed4a288c
Task: postgresql-server