Skip to content

Instantly share code, notes, and snippets.

@mt3
Forked from mxcl/uninstall_homebrew.sh
Created September 26, 2011 06:56
Show Gist options
  • Save mt3/1241746 to your computer and use it in GitHub Desktop.
Save mt3/1241746 to your computer and use it in GitHub Desktop.
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
cd `brew --prefix`
git ls-files -z | pbcopy
rm -rf Cellar
bin/brew prune
pbpaste | xargs -0 rm
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
test -d Library/LinkedKegs && rm -r Library/LinkedKegs
rmdir -p bin Library share/man/man1 2> /dev/null
rm -rf .git
rm -rf ~/Library/Caches/Homebrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment