Celeb Glow
news | April 03, 2026

How to install psql without Postgres?

I need the psql command line tools, but I don't need the actual Postgres RDBMS. This is to work with a package which supports a psql interface.

Is it possible to install just psql?

(Ubuntu 16.04)

2 Answers

Oh, yes:

$ sudo apt-get install -y postgresql-client
$ psql --version
psql (PostgreSQL) 9.5.12
3

If you don't want to install anything, just download the package

Then run unpack and run ./bin/psql No installation.

The package also contains postgres server which you can run at local without installation also. For more, ref

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy