Using it ensures your system is up to date with the additional cost of reinstalling some applications that are not outdated. The command brew cask upgrade also accepts the -greedy option (internally it uses brew cask outdated to find the list of packages to upgrade). Those having latest as their version cannot be checked and are always listed, those marked as auto-updateable are checked and listed only if they are outdated indeed. This command includes in its output the casks mentioned above. To list them one have to add the -greedy option in the command line of brew cask outdated: $ brew cask outdated -greedy These two categories of casks are not listed by brew cask outdated. Some casks mark themselves as auto-updateable while others use the keyword latest as their version. Sometimes, brew cask outdated does not list all the outdated casks. It can replace the for block in the script that now becomes: # Upgrade Homebrew and the information about formulas It also works without arguments and upgrades all the casks displayed by brew cask outdated. In the meantime, the brew cask upgrade command has been implemented and can be used instead of brew cask reinstall in the script provided in the original answer. The original answer and the 2018 update are kept for historical reasons. It also supports the options listed above for brew outdated and operates accordingly. The third command ( brew upgrade) upgrades the packages listed by brew outdated. It can be used to see what programs will be upgraded before doing the actual upgrade. Add -greedy to the command line to include in its output the casks that are marked as "auto-updateable". Add -formulae or -casks to the command line to limit the command scope to formulae or casks. The second command ( brew outdated) lists the outdated installed formulae and casks. The first command ( brew update) gets from the Homebrew servers the information about the most recent versions of the available formulae and casks. There is a unified flow now for both formulae and casks: brew update The cask command has been completely removed from Homebrew in version 2.6.0, released in December 2020. To limit their scope to only formulae or casks add the -formula or -cask option to the command line. The core commands now operate on both formulae and casks. During 2020 the sub-commands of the cask command were gradually integrated into the core of Homebrew and were deprecated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |