Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How can I cleanly remove Homebrew. I might have a faulty older installation, and I'd like to have a fresh start.

share|improve this question
add comment

2 Answers

Try this in your Terminal:

cd `brew --prefix`
rm -rf Cellar
brew prune
rm `git ls-files`
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
rm -rf .git
rm -rf ~/Library/Caches/Homebrew

More info about this topic can be found in the Homebrew FAQ.

share|improve this answer
    
I would check that the cd `brew --prefix` goes to a folder that you don't have normal git files checked in since an old / malfunctioning setup might fail and the deletion of git ls-files could delete something other than the remains of your brew. –  bmike Feb 20 '13 at 13:57
1  
I updated the link in my answer. Basically, every file you've added there manually well be left intact. –  Michiel Feb 20 '13 at 14:01
    
Excellent - calling that out explicitly is a great addition. +2 if I could. –  bmike Feb 20 '13 at 14:07
    
I did read the documentation, I just thought that might be an useful question to ask for future reference. I do have problems with the instructions though, which I posted as a separate question: apple.stackexchange.com/questions/82863/… –  ipavlic Feb 20 '13 at 21:04
add comment

try to use the sd card it was originally installed and "uninstall the homebrew" if you used the bootmii you have to download and install the original boot2 from Nintendo.

Hope This Helps cdbrew --prefix rm -rf Cellar brew prune rmgit ls-files rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions rm -rf .git rm -rf ~/Library/Caches/Homebrew

share|improve this answer
    
Whats this first paragraph about Nintendo to do with? –  Stembrain Feb 14 at 16:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.