Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacqinthebox/c0a8d920d332de5f0faf50212dc18199 to your computer and use it in GitHub Desktop.
Save jacqinthebox/c0a8d920d332de5f0faf50212dc18199 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.
# --------------------------------------------------------------------------------
brew cask reinstall `brew cask outdated`
# List installed outdated casks
# More info: https://github.com/caskroom/homebrew-cask/issues/29301
# --------------------------------------------------------------------------------
# List installed brew casks using the versions flag
brew cask list --versions
# List outdated brew casks using the greedy flag (i use this one)
brew cask outdated --greedy
# List outdated brew casks using the greedy flag and pipe to show only latest versions
brew cask outdated --greedy | grep -v '(latest)'
# List outdated brew casks
brew cask outdated
# List outdated brew casks using the verbose flag
brew cask outdated --verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment