Where does Homebrew install it's software?

I've installed Maven with Homebrew and searching for the Maven installation directory, so that I can set MAVEN_HOME.

1 Answer 1


brew installs binary in separate directories inside /usr/local dir. Then makes symlink inside /usr/local/bin. To get real path to binary type for example this (for tree command):

ls -l /usr/local/bin/ | grep tree


lrwxr-xr-x  1 slozo  admin    29 23 lip 15:06 tree -> ../Cellar/tree/1.7.0/bin/tree

So my tree command is located in /usr/local/Cellar/tree/1.7.0/bin/tree

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .