Homebrew as non-admin

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.