I've got some problems with this package manager, I can't find how to remove it!

Is it safe to remove whole /usr/local ?? Homebrew was installed somewhere in that direction..

link|improve this question

feedback

3 Answers

up vote 33 down vote accepted

Here's how they recommend doing it:

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

This should also revert your /usr/local folder to its pre-Homebrew days. See the Homebrew installation wiki for more information.

link|improve this answer
thank you so much! i've googled so hard, but even't bothered to look for uninstallation actions in installation manual! ;D – holms Oct 28 '10 at 15:36
2  
Note that the instructions have changed over time, and also been moved to the Homebrew FAQ github.com/mxcl/homebrew/wiki/FAQ/… – Nelson Sep 10 '11 at 23:19
feedback

Also note that homebrew changes group to 'staff' and gives write access to group for

  • /usr/local
  • /usr/local/bin
  • /usr/local/include
  • /usr/local/lib
  • /usr/local/sbin
  • /usr/local/share

In order to put back these directories in their original states do:

sudo chown root:wheel <directory> ; sudo chmod 755 <directory>

for each one or if you don't have fancy owners / rights:

sudo chown -R root:wheel /usr/local ; sudo chmod -R 755 /usr/local
link|improve this answer
feedback

There might be other files in /usr/local you might need you might be able to user a different PM to remove the current PM.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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