No.. Unless you do significant surgery.
The reason is that Homebrew strongly insists on installing packages into /usr/local
. In fact, even if you forced it to install somewhere else, you are likely to break dependencies when you use brew install
to install packages. Most if not all of these packages are pre-compiled and linked expecting to live in /usr/local
.
The reason for this insistence is that /usr/local
is precisely where POSIX recommends that stuff like this gets installed. In order to create /usr/local
Homebrew needs temporary admin credentials to create the directory and assign ownership.
This, in turn, is what allows you to install anything else without elevating credentials.