Skip to content

🍺 The missing package manager for macOS without the need of root permissions

License

Notifications You must be signed in to change notification settings

mietzen/brew-rootless

 
 

Repository files navigation

Homebrew - Rootless

GitHub release

Welcome to Homebrew - Rootless, a fork of Homebrew tailored for users without root permissions on their mac.

Caveats:

Using brew in a rootless setup has some caveats: Most formulae will be built from source, and some casks and formulae may not be available. If you'd like to know why, read this.

Features:

  • Rootless: Brew can be installed and managed without root access.
  • Cask installations: Default to ~/Applications for user-level convenience.
  • Cask uninstallation: Won't prompt for your password when removing launchctl services.
  • Up-to-date: This fork is continuously synced with the main repository, including tags, to stay up-to-date with the latest changes.

Supported Platforms:

  • MacOS ARM64 (M1)

Install

mkdir -p $HOME/.local/opt
mkdir -p $HOME/Applications
git clone https://github.com/mietzen/brew-rootless.git $HOME/.local/opt/homebrew
cat << EOF >> $HOME/.zshrc

### ROOTLESS-BREW
# Homebrew Binary
export PATH="$HOME/.local/opt/homebrew/bin:$PATH"

## Brew Auto-Completions
if type brew &>/dev/null
then
  FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"

  autoload -Uz compinit
  compinit
fi
### ROOTLESS-BREW

EOF
exec zsh

Uninstall

sed -i '/### ROOTLESS-BREW/,/### ROOTLESS-BREW/d' $HOME/.zshrc
rm -rf $HOME/.local/opt/homebrew

Issues:

Please do not open issues on the Homebrew main repository for any problems encountered using this fork. Issues specific to the rootless version should be raised here instead.

Special Thanks:

We deeply appreciate the tremendous work done by the Homebrew team. Their effort is what makes this project possible, and we stand on their shoulders to bring this rootless-friendly fork to life.

Disclaimer:

I am not responsible for the content of formulae and casks available in this fork. All trademarks, logos, and brand names are the property of their respective owners. All company, product, and service names used in this software are for identification purposes only. The use of these names, trademarks, and brands does not imply endorsement.

About

🍺 The missing package manager for macOS without the need of root permissions

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Ruby 90.9%
  • Shell 5.8%
  • Roff 2.4%
  • HTML 0.6%
  • Rich Text Format 0.1%
  • Swift 0.1%
  • Other 0.1%