This is an old revision of the document!
Homebrew Package Management Tutorial - refer to for sanity on macOS systems.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew update brew doctor brew cleanup brew upgrade brew cask install <packagename> brew install caskroom/cask/<packagename> git -C "$(brew --repo homebrew/core)" fetch --unshallow
Uninstall Homebrew
wget https://gist.github.com/SteveBenner/11254428
Cask Location, followed by location of currently installed packages …
/Volumes/Macintosh HD/usr/local/Library/Taps/caskroom/homebrew-cask/Casks /Volumes/Macintosh HD/usr/local/Cellar /Volumes/Macintosh HD/opt/homebrew-cask/Caskroom
Or, run this command to see all installed packages in a txt file in downloads.
brew list > ~/Downloads/brews.txt
Braumeister has a search engine of Homebrew packages - http://braumeister.org/
Common packages worth installing
#Path should look like, got to Terminal, sudo nano /etc/paths
/usr/local/bin /usr/local/sbin /usr/bin /bin /usr/sbin /sbin
If you use gnutils or coreutils a lot:
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
GNU/Linux commands and how to make default
brew tap homebrew/dupes [heals the dupe issue for gnutils] brew install ed --default-names brew install findutils --with-default-names brew install gnu-indent --with-default-names brew install gnu-sed --with-default-names brew install gnu-tar --with-default-names brew install gnu-which --with-default-names brew install grep --with-default-names brew install wdiff --with-gettext
Homebrew permissions - only if it gets hosed. Otherwise, let homebrew installer or brew doctor fix:
sudo chmod -R +a "$USER allow delete,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" . sudo chown -R root:wheel /usr/local sudo chmod -R -N /usr/local
To install alternative repositories for later installation, such as:
brew install homebrew/<homebrew-binary>/<packagename> brew tap Homebrew/<homebrew-binary>
Homebrew/homebrew-apache Homebrew/homebrew-binary Homebrew/homebrew-boneyard Homebrew/homebrew-completions Homebrew/homebrew-dupes Homebrew/homebrew-games Homebrew/homebrew-headonly Homebrew/homebrew-python Homebrew/homebrew-science Homebrew/homebrew-versions davidchall/homebrew-hep josegonzalez/homebrew-php