Is the "Cellar" folder only used for Homebrew? If I am not using Homebrew, I can safely remove it?
Asked
Active
Viewed 1.2e+01k times
3 Answers
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/localthen 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 justrm -rfthat directory. This is because Homebrew won’t touch files outside its prefix.
5
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.
Ortomala Lokni
- 5,595
- 7
- 31
- 58
usr/localby Dan Benjamin of 5by5. – myhd Sep 26 '12 at 21:01./configurewith 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 usingbrew linkon it. – echristopherson Sep 27 '12 at 21:49