Skip to main content
Mchael Poncardas

How to Update Homebrew and Formulae

How to Update Homebrew and Formulae
  1. Update Homebrew itself: First, make sure your Homebrew is up-to-date with the latest repository information:
brew update
  1. Upgrade all installed formulae: To upgrade all your installed formulae to their latest versions:
brew upgrade

This will check for updates and apply them to any installed formulae or casks.

  1. Upgrade specific formula: If you only want to upgrade a particular program, specify its name:
brew upgrade <formula_name>

Checking for Available Updates

If you only want to see what updates are available without upgrading, you can use:

brew outdated

This will list all formulae and casks that have a newer version available.

Cleaning Up Old Versions

After upgrading, old versions of formulae may remain on your system. To remove them and free up disk space:

brew cleanup

Example Workflow

Check what can be updated:

brew outdated

Update specific formulae or all outdated ones:

brew upgrade

Clean up after upgrading:

brew cleanup
#tutorial #macos