Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So if I am not using Homebrew, I can safely remove it?

share|improve this question

The script for uninstalling Homebrew removes it completely, so it's probably safe to remove it.

How do I uninstall Homebrew?

If you installed to /usr/local then you can use the script in this gist to uninstall — it will only remove Homebrew and the stuff Homebrew installed leaving anything else in /usr/local alone.

Provided you haven’t put anything else in Homebrew’s prefix (brew --prefix), you can generally just rm -rf that directory. This is because Homebrew won’t touch files outside its prefix.

share|improve this answer
From one of the comments, I was hesitated...The FAQ says that this gist uninstalls ONLY the homebrew stuff. The FAQ says that Cellar is the place to install non-homebrew stuff. This gist removes Cellar. – Yoga Sep 20 '12 at 4:03
@Yoga If you look closely, the FAQ says "it will only remove Homebrew and the stuff Homebrew installed". The homebrew homepage says "Homebrew installs packages to their own directory and then symlinks their files into /usr/local." Check this useful article about using usr/local by Dan Benjamin of 5by5. – myhd Sep 26 '12 at 21:01
@myhd - that article is not that useful - FHS is Linux and not Unix, /usr/local is for stuff you compiled yourslef but many unicies also have /opt (as also does Macports) and other directories that are not affected by system installs – Mark Sep 27 '12 at 1:22
Still, it is very common for ./configure with no --prefix= argument to just assume you want to install in /usr/local; and the Homebrew FAQ does suggest installing stuff you've compiled yourself there, and then using brew link on it. – echristopherson Sep 27 '12 at 21:49
To clarify: The "Cellar" directory is a location that Homebrew made up for its own use. (The name fits with Homebrew's "beer" theme: the "cellar" is where you store your "kegs" of "homebrew".) No other software uses it. So if you don't need Homebrew and the programs you installed using Homebrew, you can delete Cellar. @myhd - when homebrew says "to their own directory", that "own directory" is located under "Cellar". – Andrew Janke Apr 25 '13 at 19:12

Yes. You can remove Cellar directory.

share|improve this answer

Your Answer


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.