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) | |
$ brew cask reinstall `brew cask outdated`
Error: This command requires a Cask token.
The cask
command doesn't exist anymore. This works: brew upgrade $(brew outdated --cask --greedy --quiet)
The
cask
command doesn't exist anymore. This works:brew upgrade $(brew outdated --cask --greedy --quiet)
Thanks (was a long time i was here)!
I had to use brew upgrade --cask $(brew outdated --cask --greedy --quiet)
.
For example, brew upgrade docker
and brew upgrade --cask docker
have a different meaning.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brute force method...
brew cask reinstall --force `brew cask outdated --greedy`