Advertisement
theitd

BREW cheatsheet

Nov 2nd, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. #  To list software you currently have installed with version numbers, use:
  2.  
  3. brew list --versions
  4.  
  5. #  To see just the software, which is not a dependency of another:
  6.  
  7. brew leaves
  8.  
  9. #  To keep the Homebrew itself up-to-date, and fetch the newest version from GitHub:
  10.  
  11. brew update
  12.  
  13. #  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:
  14.  
  15. brew outdated --verbose
  16.  
  17. #  See any app that you no longer need and want to get rid of them? Check the dependencies for all installed formulae:
  18.  
  19. brew deps --installed
  20.  
  21. #  For even more detailed picture, show the dependencies for all installed formulae as a tree:
  22.  
  23. brew deps --installed --tree
  24.  
  25. #  As a final precaution before removing a formula, see what other installed formulae use it as a dependency:
  26.  
  27. brew uses --installed formula
  28.  
  29. #  Uninstall formulae and all their older versions:
  30.  
  31. brew remove --force formulae
  32.  
  33. #  Upgrade remaining formulae:
  34.  
  35. brew upgrade
  36.  
  37. #  Show what will be removed by cleanup command, but do not actually remove anything:
  38.  
  39. brew cleanup -ns
  40.  
  41. #  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:
  42.  
  43. brew cleanup -s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement