Skip to content

Instantly share code, notes, and snippets.

@codeFareith
Last active August 29, 2015 14:03
Show Gist options
  • Save codeFareith/7f66bf213b1acfac666b to your computer and use it in GitHub Desktop.
Save codeFareith/7f66bf213b1acfac666b to your computer and use it in GitHub Desktop.
Mac OS X Tipps and Tricks #2: Homebrew - The missing package manager for OS X

Mac OS X - From A Developers View

####2: Homebrew - The missing package manager for OS X tested on Mac OS X 10.9.4 Mavericks

Xcode Command Line Tools

via Mac AppStore

First you need to install Xcode via the Mac AppStore. Then download and install the Xcode Command Line Tools through Xcode > Preferences > Downloads > Command Line Tools.

via Terminal

Run the following command:

xcode-select --install

Homebrew

Download and Install

Open /Applications/Utilities/Terminal.app and run the following command, to download and install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Setup PATH-Variable

echo 'export PATH=/usr/local/bin:/usr/local/sbin:$PATH' >> ~/.bash_profile
source ~/.bash_profile

Using Homebrew

brew doctor                   # Troubleshooting
brew update                   # Update formulae and Homebrew
brew upgrade                  # Upgrade everything
brew cleanup                  # Clean cache

brew list                     # List installed formulae
brew search                   # List all available formulae
brew search <pattern>         # Search for formulae
brew info <formulae>          # Display info of formulae
brew install <formulae>       # Install formulae
brew remove <formulae>        # Remove/uninstall formulae

brew tap                      # List tapped repositories
brew tap/untap <repository>   # Tap/untap repository

Recommended Formulae

brew install git
brew install autoconf
brew install automake
brew install wget
brew install lynx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment