Homebrew
Homebrew is a package manager for OS X. Install it, as we’ll need it later:
1 2 3 |
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
You’ll also need the Xcode command line tools – at least version 6.1. Xcode is available on the Mac App Store as a free download. Don’t forget to start up Xcode at least once after initial installation.
Initially and after every major OS X upgrade, you might need to reinstall the Xcode command line tools and accept the license aggreement:
1 2 3 4 |
$ xcode-select --install $ sudo xcodebuild -license |
Also, don’t forget to create this missing symlink after upgrading to a new major OSX version:
1 2 3 |
$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain |
Once Homebrew is set up and you want to upgrade outdated packages, run:
1 2 3 4 |
$ brew update $ brew upgrade |
Remember to also run brew update && brew upgrade
after upgrading to a new major OS X version.
List all installed packages:
1 2 3 |
$ brew list --versions |
You should never be required to run brew
as root using sudo
!