Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PostgreSQL server setup on Box A. I want to connect to the server from Box B using psql. What do I need to install on Box B? I can't find a client installation binary for PostgreSQL. Or do I have to install the entire PostgreSQL distribution?

share|improve this question
What is the OS? Most Linux systems will offer client-only packages. – Sven Apr 4 '11 at 11:35
What is your OS: Linux, Windows, others? – Khaled Apr 4 '11 at 11:36
It's Ubuntu. I will look for a package then. – jason.ppdev Apr 4 '11 at 11:41
up vote 4 down vote accepted

On Debian the package you are looking for is called postgresql-client and I guess it will be the same on Ubuntu.

share|improve this answer
Where do I put pg_hba.conf though? It's supposed to be under the data directory, but there is none in a client only setup. – jason.ppdev Apr 4 '11 at 14:06
You need pg_hba.conf only on the server side, not the client side. It defines which client might connect from where and how. – Sven Apr 4 '11 at 14:15
Thanks, that makes sense. – jason.ppdev Apr 4 '11 at 14:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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