Skip to content

Instantly share code, notes, and snippets.

@mralexho
Last active June 13, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mralexho/f281638ff7163418246d to your computer and use it in GitHub Desktop.
Save mralexho/f281638ff7163418246d to your computer and use it in GitHub Desktop.
# To keep the Homebrew itself up-to-date, and fetch the newest version from GitHub use:
brew update
# After updating the brew, check which formulae have an updated version available, display detailed version information to see if you have more than one older version laying around:
brew outdated --verbose
# Remove broken symlinks
brew prune
# See any app that you no longer need and want to get rid of them? Check the dependencies for all installed formulae:
brew deps --installed
# For even more detailed picture, show the dependencies for all installed formulae as a tree:
brew deps --installed --tree
# As a final precaution before removing a formula, see what other installed formulae use it as a dependency:
brew uses --installed formula
# Uninstall formulae and all their older versions:
brew remove --force formulae
# Upgrade remaining formulae:
brew upgrade
# Show what will be removed by cleanup command, but do not actually remove anything:
brew cleanup -ns
# Clean the "Cellar" removing any older versions of installed formulae and clearing old downloads from the Homebrew download-cache. Additionally, scrub the cache, removing downloads for even the latest versions of formula, which are downloaded, but not installed:
brew cleanup -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment