HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

brew cleanup — Remove stale lock files and outdated downloads for all formulas and casks. More information: <https:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
brew cleanupcommandfilesremoveandstaleclilock

Problem

How to use the brew cleanup command: Remove stale lock files and outdated downloads for all formulas and casks. More information: <https://docs.brew.sh/Manpage#cleanup-options-formulacask->.

Solution

brew cleanup — Remove stale lock files and outdated downloads for all formulas and casks. More information: <https://docs.brew.sh/Manpage#cleanup-options-formulacask->.

Remove stale lock files and outdated downloads for all formulas/casks:
brew cleanup


Remove stale lock files and outdated downloads for a specific formula/cask:
brew cleanup {{formula|cask}}


Show what would be removed, but do not actually remove anything:
brew cleanup {{[-n|--dry-run]}}


Display help:
brew cleanup {{[-h|--help]}}

Code Snippets

Remove stale lock files and outdated downloads for all formulas/casks

brew cleanup

Remove stale lock files and outdated downloads for a specific formula/cask

brew cleanup {{formula|cask}}

Show what would be removed, but do not actually remove anything

brew cleanup {{[-n|--dry-run]}}

Display help

brew cleanup {{[-h|--help]}}

Context

tldr-pages: common/brew cleanup

Revisions (0)

No revisions yet.