64

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

3 Answers 3

29

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

https://github.com/mxcl/homebrew/wiki/FAQ

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.

6
  • 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
    Commented Sep 20, 2012 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
    Commented Sep 26, 2012 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
    Commented Sep 27, 2012 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. Commented Sep 27, 2012 at 21:49
  • 8
    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". Commented Apr 25, 2013 at 19:12
6

According to its installation instructions, Java Service Wrapper is also using a Cellar directory:

/opt/local/Cellar/wrapper

but it is distinct from the Homebrew Cellar which is in

/opt/homebrew/Cellar

for Apple Silicon mac and

/usr/local/Cellar

for Intel mac.

5

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 .