Homebrew downloads: is it safe to delete?
Packages and source archives that Homebrew downloaded to install or upgrade software.
- Where it lives
~/Library/Caches/Homebrew
- Risk
- Low risk. The tool rebuilds it when needed, so SPACE256 preselects it in Review.
- Comes back on its own
- Yes
- If you delete it
- Homebrew downloads a package again when it is reinstalled.
- What SPACE256 does
- Moves it to the Trash after you confirm in Review, so you can put it back.
What it is
Homebrew downloads bottles (prebuilt packages), source archives and cask installers into ~/Library/Caches/Homebrew before installing them, and keeps them there afterwards. brew --cache prints the folder Homebrew uses.
Why it grows
Every upgrade downloads new versions, and large casks such as apps and SDKs keep their installers. Without brew cleanup, old downloads pile up.
When to clear it
Any time. Homebrew downloads a package again only if you reinstall it. Homebrew’s own brew cleanup --prune=all removes every cached download as well as old versions.
When to keep it
If you reinstall software often on a slow connection, the cache saves those downloads.
How SPACE256 clears it
The downloads you choose in Review move to the Trash, so you can put them back.
Questions
Does clearing the Homebrew cache uninstall anything?
No. Installed formulae and casks stay installed. The cache holds only the downloaded packages and source archives Homebrew used to install them.
Isn't `brew cleanup` enough?
It removes old versions and stale downloads, and is a good habit. The cache can still keep current downloads; those are what SPACE256 measures.