2

I installed postgresql. sudo apt-get postgresql-9.4 I am not able to find, where it was installed. Where is the data folder of the postgres

1 Answer 1

4

To find the paths of files installed by a specific package, you can use dpkg. It is installed by default as part of the base system.

 dpkg -L postgresql-9.4

Will give you an exhaustive list.

2
  • dpkg has to be installed - or your system simply isn't Debian or Debian-derived at all ;)
    – flakeshake
    Commented May 16, 2016 at 15:11
  • @flakeshake That would have been my bet but I was covering a base -- will edit (thx).
    – goldilocks
    Commented May 16, 2016 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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