Upgrade everything in brew
Homebrew is a the missing package manager for Mac OS. Brew cask extends Homebrew and brings its elegance, simplicity, and speed to Mac OS applications and large binaries alike.
If you’re using these tools and would like to upgrade all of the applications you have, run the following command.
brew update && brew upgrade && (brew cask outdated | cut -f 1 -d " " | xargs brew cask reinstall) && brew cleanup && brew cask cleanup
Breaking it down
Created: Thu, 19 Oct 2017 00:00:00 +0530
- Update brew with information from the latest taps:
- Upgrade apps in brew:
- Update brew cask apps:
brew cask outdated | cut -f 1 -d " " | xargs brew cask reinstall
- Find outdated cask apps:
brew cask outdated
- Cut out the app names:
cut -f 1 -d " "
- Upgrade brew cask apps:
xargs brew cask reinstall
- Remove installers for brew apps (to release disk space):
- Remove installers for brew cask apps (to release disk space):
brew cask cleanup
Automation, Brew, Mac OS