Skip to content

Instantly share code, notes, and snippets.

@christopheranderton
Last active February 4, 2024 17:29
Show Gist options
  • Save christopheranderton/9929502185dd0a6545c900cca0f5f614 to your computer and use it in GitHub Desktop.
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.
# 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)
Copy link

ghost commented Nov 7, 2018

brute force method...

brew cask reinstall --force `brew cask outdated --greedy`

@isuftin
Copy link

isuftin commented Mar 25, 2020

$ brew cask reinstall `brew cask outdated`

Error: This command requires a Cask token.

@henrik242
Copy link

The cask command doesn't exist anymore. This works: brew upgrade $(brew outdated --cask --greedy --quiet)

@christopheranderton
Copy link
Author

The cask command doesn't exist anymore. This works: brew upgrade $(brew outdated --cask --greedy --quiet)

Thanks (was a long time i was here)!

@your-diary
Copy link

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