sudo apt install postgresql-client

Category: Databases & SQL

sudo apt install postgresql-client

Install only the PostgreSQL client tools

Pulls psql, pg_dump, pg_restore and the other client utilities without starting a local server, ideal for admin workstations that only connect to remote databases. The client major version may differ from the server; psql warns but generally works. Pin with postgresql-client-16 if you need a specific release.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.