Here’s how to install Homebrew on OS X Yosemite.
- Remove and clean up any previous installations:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
- Install a fresh copy of Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/ install/master/install)"
- Detect any issues using Homebrew’s
- Clean up any issues from
- Install your software.
Now you’ll be running with Ruby 2.x (default in Yosemite) as well as the latest Homebrew.