Skip to content

Instantly share code, notes, and snippets.

@chandu-io
Last active December 20, 2015 11:59
Show Gist options
  • Select an option

  • Save chandu-io/6127337 to your computer and use it in GitHub Desktop.

Select an option

Save chandu-io/6127337 to your computer and use it in GitHub Desktop.
brew :: uninstall and reinstall and commands

This useful tip is taken from the article Uninstalling brew (so I can reinstall)

Uninstall

WARNING: Before copying and pasting these commands on your shell, make sure the first one (`brew --prefix`) returns the path where homebrew was installed properly. If not, you might ending up removing stuff from your computer you did not intend to remove.

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

Install

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment