72

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)

117

Oh, yes:

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

If you don't want to install anything, just download the package https://www.enterprisedb.com/download-postgresql-binaries

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 https://www.golery.com/pencil/vU

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.