Skip to content

Instantly share code, notes, and snippets.

@dialex
Last active January 7, 2025 09:41
Show Gist options
  • Save dialex/51b552ed2c8d06947de560ff46f64a0d to your computer and use it in GitHub Desktop.
Save dialex/51b552ed2c8d06947de560ff46f64a0d to your computer and use it in GitHub Desktop.
Upgrades everything that was installed using brew. Cleanups at the end.
#!/bin/sh
brew update;
brew upgrade;
brew upgrade --cask;
brew cu -fy --cleanup;
# brew upgrade --cask --greedy;
brew cleanup;
brew autoremove;
read -p "Finished. Press Enter to continue..."
#brew bundle dump # Generates Brewfile
#brew bundle --file Brewfile.txt # Installs Brewfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment