brew-upgrade
Upgrade installed Homebrew packages to newer versions
TLDR
SYNOPSIS
brew upgrade [options] [formula|cask] ...
DESCRIPTION
brew upgrade upgrades outdated casks and outdated, unpinned formulae using the same options they were originally installed with. Without arguments, it upgrades all installed packages. With arguments, it upgrades only the specified packages.Unless $HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set, brew upgrade or brew reinstall will be run for outdated dependents and dependents with broken linkage, respectively.Unless $HOMEBREW_NO_INSTALL_CLEANUP is set, brew cleanup will then be run for the upgraded formulae or, every 30 days, for all formulae.
PARAMETERS
--formula, --formulae
Treat all named arguments as formulae. If no named arguments are specified, upgrade only outdated formulae.--cask, --casks
Treat all named arguments as casks. If no named arguments are specified, upgrade only outdated casks.-n, --dry-run
Show what would be upgraded, but do not actually upgrade anything.-v, --verbose
Print the verification and post-install steps.-q, --quiet
Make some output more quiet.-d, --debug
If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory.--display-times
Print install times for each package at the end of the run. Enabled by default if $HOMEBREW_DISPLAY_INSTALL_TIMES is set.--ask
Ask for confirmation before downloading and upgrading formulae. Print download, install and net install sizes of bottles and dependencies. Enabled by default if $HOMEBREW_ASK is set.-f, --force
Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask).-g, --greedy
Also include casks with auto_updates true or version :latest. Enabled by default if $HOMEBREW_UPGRADE_GREEDY is set.--greedy-latest
Also include casks with version :latest.--greedy-auto-updates
Also include casks with auto_updates true.--fetch-HEAD
Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository's HEAD will only be checked for updates when a new stable or development version has been released.-s, --build-from-source
Compile formula from source even if a bottle is available.--force-bottle
Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation.--skip-cask-deps
Skip installing cask dependencies.--overwrite
Delete files that already exist in the prefix while linking.--keep-tmp
Retain the temporary files created during installation.
ENVIRONMENT
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK
Skip upgrading outdated dependents and dependents with broken linkage.HOMEBREW_NO_INSTALL_CLEANUP
Skip automatic cleanup after upgrade.HOMEBREW_DISPLAY_INSTALL_TIMES
Enables --display-times by default.HOMEBREW_ASK
Enables --ask by default.HOMEBREW_UPGRADE_GREEDY
Enables --greedy by default.
CAVEATS
Run brew update first to fetch the latest package definitions before upgrading. Cask upgrades may use an uninstall/reinstall or content replacement strategy depending on the cask. Pinned formulae are never upgraded; use brew unpin to allow upgrades.
SEE ALSO
brew(1), brew-update(1), brew-outdated(1), brew-install(1), brew-reinstall(1), brew-cleanup(1)
