Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 am going to compile postgresql from source, but the system already has postgresql related binaries such as pg_config, which gives me a lot of environment variables etc when I run it. I did not install postgresql an I've double checked from software manager. Why do I have postgresql related files? They lead to problems when I try to develop extensions with the custom compiled version of postgresql since various environment variables have already been configured.

share|improve this question
up vote 3 down vote accepted

Probably some other installed package depends upon postgresql, so the binaries got pulled in. You can run

apt-cache rdepends postgresql

to see all the reverse dependencies.

share|improve this answer

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.