$1*/ mo hosting! Get going with GoDaddy!

Removing Brew and Reinstalling it

I faced an issue with my brew installation which caused a lot of ruby error popping out every time i uses Brew. Therefore i needed a way to reinstall brew.

Uninstall Brew

A quick Google search lead me to Uninstalling brew (so I can reinstall) by Eneko Alonso and he has all the instruction listed to cleanly removing your brew installation. But 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

Reinstalling Brew

All you have to do is fire this on your terminal

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Sit back and relax until Brew is fully installed. Once its done, remember to use "brew doctor" to make sure it said  the following

$ brew doctor
Your system is raring to brew.

and we are good to go!

Increase sales with social commerce at BigCommerce. Learn More!