Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew size of Cellar

Tags:

macos

homebrew

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?

like image 565
pitosalas Avatar asked Dec 16 '14 15:12

pitosalas


People also ask

How much space does Homebrew take up Mac?

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.

What is Formulae in brew?

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.

Where is Homebrew installed on Mac?

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).


1 Answers

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.

like image 178
Dimitri Avatar answered Sep 19 '22 22:09

Dimitri