Trying to do cleanup on my system that's running out of space, I found 4 gig in my Cellar directory for homebrew. I am not sure what job the cellar is doing. Is it just a cache that I can safely delete or are those files actually being used?
In order to install Homebrew, you need to install either the Xcode Command Line Tools (about 100 MB) or the full Xcode package (about 10 GB). In this tutorial, you will install Command Line Tools as they are a more reasonable size. Command Line Tools gives Mac users many commonly used tools, utilities, and compilers.
A formula is a package definition written in Ruby. It can be created with brew create <URL> where <URL> is a zip or tarball, installed with brew install <formula> , and debugged with brew install --debug --verbose <formula> . Formulae use the Formula API which provides various Homebrew-specific helpers.
On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).
The cellar directory contains all the packages that homebrew installs. However it also contains every version that you have installed.
You can run brew cleanup
to remove old versions of packages to clean some space.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With