Skip to content

Instantly share code, notes, and snippets.

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 alexandreelise/5b9fc3a4ffe3d32ac27f3c80cd53beec to your computer and use it in GitHub Desktop.
Save alexandreelise/5b9fc3a4ffe3d32ac27f3c80cd53beec to your computer and use it in GitHub Desktop.
An attempt to automate the upgrade of outdated homebrew formulas all at once. Do this at your own risk. Understand what it does before running it.
#!/bin/bash
#Take just the outdated formulas names from the list using awk
#then give that to upgrade command
# you could add to this line && brew cleanup but it's up to you
#
# WARNING: Please understand what that script does before using it.
# I will in no way be responsible for the misuse of this script.
# If you understand and you are ok with that, If you are unsure don't use it.
brew upgrade $( brew outdated | awk '{ print $1; }' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment