Ubuntu – How to install psql without Postgres

postgresql

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)

Best Answer

Oh, yes:

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