Install Homebrew on Mac OS
From Bonus Bits
This article gives the steps to install Homebrew on Mac OS.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1 ==> The following directories will be made group writable: /usr/local/. /usr/local/bin ==> The following directories will have their group set to admin: /usr/local/. /usr/local/bin Press ENTER to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin Password: ***** ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin ==> Downloading and installing Homebrew... remote: Finding bitmap roots... remote: Counting objects: 140863, done. remote: Compressing objects: 100% (48253/48253), done. remote: Total 140863 (delta 97479), reused 134711 (delta 91553) Receiving objects: 100% (140863/140863), 25.85 MiB | 3.45 MiB/s, done. Resolving deltas: 100% (97479/97479), done. From https://github.com/mxcl/homebrew * [new branch] master -> origin/master HEAD is now at 9d48cc8 Revert "Disable bottles when HOMEBREW_CELLAR.parent != HOMEBREW_PREFIX" ==> Installation successful!
- El Capitan + will lock down /usr/local directory.
sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local