Home - zhamri/brew GitHub Wiki

By default, Homebrew will install all packages in the directory /usr/local/Cellar/, and also creates symbolic links at /usr/local/opt/ and /usr/local/bin/ (for executable files).

~ % brew update
Already up-to-date.

~ % brew -v
Homebrew 3.1.12
Homebrew/homebrew-core (git revision 830670cf82; last commit 2021-06-20)

~ % ls -lsa /usr/local/Cellar/
~ % ls -lsa /usr/local/opt/
~ % ls -lsa /usr/local/bin/
~ % brew info maven

References

  1. https://mkyong.com/mac/where-does-homebrew-install-packages-on-mac/