Difference between revisions of "Brew cleanup"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by 2 users not shown)
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
  
  [[brew cleanup -d -v]]
+
  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 10: Line 58:
 
* <code>[[brew install]]</code>
 
* <code>[[brew install]]</code>
 
* <code>[[brew doctor]]</code>
 
* <code>[[brew doctor]]</code>
* [[No space left on device]]
+
* <code>[[No space left on device]]</code>
 +
* <code>[[~/Library/Caches/]]</code>
 +
* [[~/Library/Caches/Homebrew/downloads/]]
 +
* <code>[[du -hs /Users/*/brew/]]</code>
 +
* [[du -hs -- *]] 2>/dev/null
  
 
== See also ==
 
== See also ==
 +
* {{brew cleanup}}
 
* {{Brew}}
 
* {{Brew}}
  
 
[[Category:Homebrew]]
 
[[Category:Homebrew]]

Latest revision as of 12:40, 8 October 2024

This article is a Draft. Help us to complete it.

brew cleanup
.../...
==> This operation has freed approximately 1.8GB of disk space.
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.


Related commands[edit]

See also[edit]

Advertising: