Is the "Cellar" folder only used for Homebrew? If I am not using Homebrew, I can safely remove it?


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.

  • 1
    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
  • 1
    @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
    – mmmmmm
    Sep 27 '12 at 1:22
  • 1
    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. Sep 27 '12 at 21:49
  • 7
    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". Apr 25 '13 at 19:12

Yes. You can remove Cellar directory.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .