Editing Brew cleanup

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
{{lc}}
 
 
brew cleanup
 
.../...
 
==> This operation has freed approximately 1.8GB of disk space.
 
  
 
* <code>brew cleanup</code>
 
* <code>brew cleanup</code>
* <code>[[brew cleanup -s]]</code>
+
* <code>brew cleanup -s</code>
* <code>[[brew cleanup -d -v]]</code>
 
 
 
brew cleanup
 
.../...
 
==> This operation has freed approximately 455.7MB of disk space.
 
 
 
brew cleanup -s
 
.../...
 
==> This operation has freed approximately 4.8MB of disk space.
 
 
 
brew cleanup
 
Warning: Skipping aom: most recent version 3.8.0_1 not installed
 
Warning: Skipping awscli: most recent version 2.15.6 not installed
 
Warning: Skipping groonga: most recent version 13.1.0 not installed
 
Warning: Skipping jpeg-xl: most recent version 0.9.0 not installed
 
Warning: Skipping meson: most recent version 1.3.1 not installed
 
Warning: Skipping netpbm: most recent version 11.02.07 not installed
 
Warning: Skipping opensearch-dashboards: most recent version 2.11.1 not installed
 
Warning: Skipping python-lxml: most recent version 5.0.0 not installed
 
Warning: Skipping subversion: most recent version 1.14.3 not installed
 
Warning: Skipping terragrunt: most recent version 0.54.12 not installed
 
 
 
Usage: brew cleanup [options] [formula|cask ...]
 
 
Remove stale lock files and outdated downloads for all formulae and casks, and
 
remove old versions of installed formulae. If arguments are specified, only do
 
this for the given formulae and casks. Removes all downloads more than 120 days
 
old. This can be adjusted with HOMEBREW_CLEANUP_MAX_AGE_DAYS.
 
 
      --prune                      Remove all cache files older than specified
 
                                    days. If you want to remove everything, use
 
                                    --prune=all.
 
  -n, --dry-run                    Show what would be removed, but do not
 
                                    actually remove anything.
 
  -s                              Scrub the cache, including downloads for even
 
                                    the latest versions. Note that downloads for
 
                                    any installed formulae or casks will still
 
                                    not be deleted. If you want to delete those
 
                                    too: rm -rf "$(brew --cache)"
 
      --prune-prefix              Only prune the symlinks and directories from
 
                                    the prefix and remove no other files.
 
  -d, --debug                      Display any debugging information.
 
  -q, --quiet                      Make some output more quiet.
 
  -v, --verbose                    Make some output more verbose.
 
  -h, --help                      Show this message.
 
  
  
Line 58: Line 8:
 
* <code>[[brew install]]</code>
 
* <code>[[brew install]]</code>
 
* <code>[[brew doctor]]</code>
 
* <code>[[brew doctor]]</code>
* <code>[[No space left on device]]</code>
 
* <code>[[~/Library/Caches/]]</code>
 
* [[~/Library/Caches/Homebrew/downloads/]]
 
* [[du -hs /Users/*/brew/]]
 
* [[du -hs -- *]] 2>/dev/null
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: