Where does Homebrew install Postgres executables?
Asked Answered
C

4

22

Which directory does Homebrew install Postgres executables in? I've searched just about everywhere.

Chantellechanter answered 5/8, 2013 at 3:39 Comment(0)
G
20

In the bin/ directory managed by Homebrew. Pop open a terminal and run:

$ echo `brew --prefix`/bin

The output will be the directory where Postgres executables are installed.

Gies answered 7/8, 2013 at 19:38 Comment(2)
yes. and in case anyone is searching for the bin/ dir managed by Homebrew... try /opt/homebrew/binHindward
If you don't find it in /opt/homebrew/bin, try /opt/homebrew/optInapposite
M
23

Usually you can find recipes in /usr/local/Cellar . Did you try searching there?

Meacham answered 5/8, 2013 at 3:45 Comment(0)
G
20

In the bin/ directory managed by Homebrew. Pop open a terminal and run:

$ echo `brew --prefix`/bin

The output will be the directory where Postgres executables are installed.

Gies answered 7/8, 2013 at 19:38 Comment(2)
yes. and in case anyone is searching for the bin/ dir managed by Homebrew... try /opt/homebrew/binHindward
If you don't find it in /opt/homebrew/bin, try /opt/homebrew/optInapposite
R
3

For version 14 location is:

/usr/local/Cellar/postgresql@14

Use the complete version to find the executables:

/usr/local/Cellar/postgresql@14/14.8/lib/postgresql@14
Rubdown answered 12/6, 2023 at 15:3 Comment(0)
S
0

You can find Postgres installed via Homebrew at the following location:
(chance that you're looking for postgres config file beside psql, so let me provide it here as well)

Example below for Postgres@16 installed with homebrew (brew install postgresql@16)

For Macbook Apple ARM (M series chip)

/opt/homebrew/Cellar/postgresql@16 <-- Main directory
/opt/homebrew/Cellar/postgresql@16/16.3/bin <-- bin directory (includes psql, pg_dump & stuffs)
/opt/homebrew/var/postgresql@16/ <-- incl Postgres config files (postgresql.conf, pg_hba.conf, etc)

For Macbook Intel

Same as above, instead of path /opt/homebrew/Cellar, it would be /usr/local/Cellar.

/usr/local/Cellar/postgresql@16

Solomon answered 20/7, 2024 at 4:21 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.