Created
March 17, 2013 03:01
-
-
Save rietta/5179373 to your computer and use it in GitHub Desktop.
Reinstall Homebrew (Mac OS X)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to http://dev.enekoalonso.com/2011/08/09/uninstalling-brew-so-i-can-reinstall/ | |
cd `brew --prefix` | |
rm -rf Cellar | |
brew prune | |
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew | |
rm -rf ~/Library/Caches/Homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
/usr/bin/ruby
-e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
This is the install command as of 1/21/18, but please refer to https://brew.sh for the latest.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Everything is ok except the last line.