How to find the path of formula Installation by Brew


Finding Installed Location of Brew Formula

If you have installed a formula (node, python, git, awscli etc) using brew and wondering where it got installed on your Mac/Linux, well you can simply run the command brew --prefix <formula> to know!

Example:
% brew --prefix python3

/opt/homebrew/opt/python@3.10

As you can see I have Python 3.10 installed at /opt/homebrew/opt/python@3.10

Note: Based on which Operating System you are using brew the default location may vary,

  • ARM Based M1/M2 Mac (macOS): /opt/homebrew
  • Intel Based Mac: /usr/local
  • Linux: /home/linuxbrew/.linuxbrew
-


Have Questions? Post them here!

Top Hashtags:

Advertisements

Advertisements




Advertisements