Last active
February 4, 2024 17:29
-
-
Save christopheranderton/9929502185dd0a6545c900cca0f5f614 to your computer and use it in GitHub Desktop.
Upgrade outdated brew casks. One liner, and the ”official” way to do it without using different hacks or scripts. However, it does not really replace some scripts out there, as in-app updates is not seen by Homebrew.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade / Update outdated casks installed. | |
# -------------------------------------------------------------------------------- | |
# Looks for outdated casks and installs the the latest version. | |
# User data (like application preferences) is intact. | |
# Updated one liner (thanks Henrik242) | |
# -------------------------------------------------------------------------------- | |
brew upgrade $(brew outdated --cask --greedy --quiet) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to use
brew upgrade --cask $(brew outdated --cask --greedy --quiet)
.For example,
brew upgrade docker
andbrew upgrade --cask docker
have a different meaning.