Skip to content

Instantly share code, notes, and snippets.

@rietta
Created March 17, 2013 03:01
Show Gist options
  • Save rietta/5179373 to your computer and use it in GitHub Desktop.
Save rietta/5179373 to your computer and use it in GitHub Desktop.
Reinstall Homebrew (Mac OS X)
# 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)"
@chenfucaijun
Copy link

Everything is ok except the last line.

@adamraby
Copy link

/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