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!

% brew --prefix python3


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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap