Homebrew as non-admin

Aug 9, 2021

Some compliances love complications. And one such, is restricting homebrew commands to admin user. As the package manager is crucial for several softwares, it's imperative to find a way to install it for local user without calling IT administrator.

  • To install homebrew in a directory called homebrew in home
mkdir -p ~/homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
  • Now, ~/homebrew/bin/brew is ready to use wherever brew is needed.
  • Add it to path by adding it in bash profile or export PATH=$PATH:/Users/<your_name>/homebrew/bin/ and then all tools you install with brew, will be available as usual without sudo permissions.


You should go to about section on this site.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.