A small bash
script to upgrade homebrew-cask
packages.
Currently, homebrew-cask
does not have an upgrade command unlike homebrew
.
This script is an expanded version of @stgtpep's comment here.
This script is not supported by the maintainers of homebrew-cask
.
They will likely object to this hasty implementation.
This script merely provides basic upgrading functionality and the removal of old versions.
brew tap nathanjang/cask-upgrade
brew install brew-cask-upgrade
Basic:
brew cask-upgrade
To upgrade, then remove old versions after the new version is installed:
brew cask-upgrade -c
or
brew cask-upgrade --clean-old
Note that old versions are removed after brew cask install
is finished.
It will therefore not remove anything from packages that it is not upgrading.