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
-

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


Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

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