Is the "Cellar" folder only used for Homebrew?

Solution 1:

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.

Solution 2:

Yes. You can remove Cellar directory.

Solution 3:

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.