How to Update All Apps on Mac and Windows Using Homebrew & WinGet

Introduction

Keeping your computer’s applications updated is important for security, performance, stability, and access to the latest features. However, manually opening every application to check for updates can be time-consuming.

Wouldn’t it be easier if you could update most of your applications with just one command?

Fortunately, you can!

Both macOS and Windows offer command-line package managers that make installing, managing, and updating applications much easier.

  • Homebrew is a popular package manager for macOS.
  • WinGet (Windows Package Manager) is Microsoft’s package manager for Windows.

With these tools, you can install applications, check for available updates, and upgrade multiple applications directly from your terminal.

In this beginner-friendly guide, we’ll walk through everything step by step, starting with installing Homebrew on Mac and WinGet on Windows, followed by the commands you need to update your applications.

Let’s get started!

Part 1: Updating Applications on macOS Using Homebrew

1. What Is Homebrew?

Homebrew is a free and open-source package manager for macOS. Think of it as an application manager that works through commands instead of requiring you to download and install everything manually.

Normally, when you want to install an application, you visit its website, download a DMG file, open it, and drag the application into your Applications folder.

Homebrew simplifies this process.

For example, instead of manually downloading Google Chrome, you can install it using a single command.

Example:

brew install --cask google-chrome

Homebrew can also help you update applications, install developer tools, manage dependencies, and remove software you no longer need.

What can you do with Homebrew?

  • Install applications.
  • Update installed applications.
  • Install programming languages and developer tools.
  • Upgrade outdated packages.
  • Uninstall applications.
  • Check which applications need updates.

2. How to Install Homebrew on Mac

Installing Homebrew is straightforward. You just need a Mac, an internet connection, and access to Terminal.

Step 1: Open Terminal

Terminal is a built-in macOS application that allows you to communicate with your computer using text commands.

There are two easy ways to open it:

Method 1: Using Spotlight Search

  1. Press Command (⌘) + Space.
  2. Type Terminal.
  3. Press Enter.

Method 2: Using Finder

  1. Open Finder.
  2. Go to Applications.
  3. Open Utilities.
  4. Double-click Terminal.

Step 2: Install Xcode Command Line Tools

Homebrew may require Apple’s Command Line Tools for certain installation and development tasks.

To install them, enter this command in Terminal:

xcode-select --install

If they are already installed, macOS will inform you.

Step 3: Install Homebrew

Now comes the important part.

Copy the following command and paste it into Terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Press Enter to execute it.

What does this command mean?

  • /bin/bash: Runs the Bash shell.
  • curl: Downloads information or files from the internet.
  • install.sh: The Homebrew installation script.
  • HEAD: Refers to the latest version of the installation script in the repository.

The installer will explain what it plans to do and ask for confirmation before proceeding.

You may also be asked to enter your Mac’s administrator password. This is normal.

Follow the instructions displayed in Terminal until the installation is complete.

Step 4: Configure Homebrew

After installation, Homebrew may display additional commands that you need to execute to configure your shell environment.

This is important because macOS needs to know where Homebrew is installed.

For Apple Silicon Macs (M1, M2, M3, M4 and newer), the default installation location is:

/opt/homebrew

For Intel Macs, the default installation location is:

/usr/local

Follow the exact configuration instructions displayed by the installer. Do not skip this step.

Step 5: Verify Homebrew Installation

Once the installation and configuration are complete, enter:

brew --version

If Homebrew is installed correctly, Terminal will display its version number.

Congratulations! Homebrew is now ready to use.


3. How to Update All Applications on Mac Using Homebrew

Now that Homebrew is installed, let’s learn how to update your applications.

There are three important commands you should understand.

Command 1: Update Homebrew

First, update Homebrew itself along with its package information.

brew update

This command downloads the latest package definitions and updates Homebrew’s local information.

Think of it as refreshing the list of available software versions before installing updates.

Command 2: Check for Outdated Applications

Before upgrading, you can check which installed applications have newer versions available.

brew outdated

Homebrew will display the outdated packages it can identify.

If everything is up to date, there may be nothing to display.

Command 3: Upgrade All Applications

This is the command you are looking for!

brew upgrade

This command upgrades all outdated, unpinned Homebrew formulae and casks.

In simple words, it updates the software installed and managed through Homebrew.

Important: Homebrew cannot automatically update every application on your Mac. Applications installed manually, through the Mac App Store, or through other software managers may need to be updated separately.

Bonus: Clean Up Old Versions

After updating your applications, you can remove outdated Homebrew downloads and old package versions that are no longer needed.

brew cleanup

This helps free up some storage space.

Your Complete Mac Update Routine

If you want to update your Homebrew-managed applications regularly, run these commands in order:

brew update
brew outdated
brew upgrade
brew cleanup

That’s it! You have successfully learned how to update your Homebrew-managed applications on macOS.


Part 2: Updating Applications on Windows Using WinGet

4. What Is WinGet?

WinGet, officially known as Windows Package Manager, is Microsoft’s command-line package manager for Windows.

Just like Homebrew on Mac, WinGet allows you to install, update, search for, and uninstall applications using simple commands.

For example, instead of visiting the official website to download Visual Studio Code, you can install it directly using WinGet.

winget install --id Microsoft.VisualStudioCode

WinGet is available on supported versions of Windows 10 and Windows 11 through Microsoft’s App Installer.

What can you do with WinGet?

  • Install applications.
  • Update installed applications.
  • Check for available updates.
  • Search for software.
  • Uninstall applications.
  • Manage multiple applications from the command line.

5. How to Install WinGet on Windows

The good news is that most Windows 11 computers already have WinGet installed.

It is distributed as part of Microsoft’s App Installer.

Let’s check whether your computer already has it.

Step 1: Open Command Prompt or PowerShell

You can use either Command Prompt or PowerShell to run WinGet commands.

Method 1: Open Command Prompt

  1. Press Windows + R.
  2. Type cmd.
  3. Press Enter.

Method 2: Open PowerShell

  1. Right-click the Start button.
  2. Select Terminal or PowerShell.

Both options will work.

Step 2: Check Whether WinGet Is Installed

Enter the following command:

winget --version

If WinGet is installed correctly, Windows will display its version number.

If Windows says that ‘winget’ is not recognized, you may need to install or update App Installer.

Step 3: Install or Update App Installer

Open the Microsoft Store.

  1. Search for App Installer.
  2. Open the Microsoft App Installer listing.
  3. Click Install or Update, depending on the option displayed.
  4. Wait for the installation to finish.

You can also visit the official Microsoft documentation:

https://learn.microsoft.com/en-us/windows/msix/app-installer/install-update-app-installer

Step 4: Verify WinGet Installation

Close and reopen Command Prompt or PowerShell.

Now enter:

winget --version

If you see a version number, congratulations! WinGet is installed and ready to use.


6. How to Update All Applications on Windows Using WinGet

Now let’s learn how to update your Windows applications.

WinGet makes this process incredibly simple.

Command 1: Check for Available Updates

To see which applications have updates available, enter:

winget upgrade

Windows will display a list of applications that WinGet can identify as having newer versions available.

You may see information such as:

  • Application name.
  • Application ID.
  • Currently installed version.
  • Available version.

This helps you identify which applications need updating.

Command 2: Update a Specific Application

If you only want to update one application, use:

winget upgrade --id Microsoft.VisualStudioCode

You can replace the application ID with the ID of another supported application.

Command 3: Update All Applications

Here is the most useful command:

winget upgrade --all

This command checks for available updates and attempts to upgrade all installed applications that WinGet can identify as having newer versions.

Depending on the application, Windows may ask you to approve installation permissions or accept license agreements.

Follow the instructions displayed on the screen.

Important: WinGet cannot guarantee that every application installed on your computer will be updated. It only updates applications that it can match with supported package sources and upgrade manifests. Some applications may require their own update mechanism.

Bonus: Include Applications with Unknown Versions

Sometimes WinGet cannot identify the currently installed version of an application.

If you want to include eligible applications with unknown installed versions in the upgrade process, use:

winget upgrade --all --include-unknown

Be aware that this may attempt additional upgrades where the installed version cannot be determined.

Bonus: Update WinGet’s Package Sources

You can refresh the package sources before checking for updates.

winget source update

This helps ensure WinGet has refreshed information from its configured package sources.


7. Homebrew vs WinGet: What’s the Difference?

Both tools make software management easier, but they are designed for different operating systems.

FeatureHomebrewWinGet
Operating SystemmacOSWindows
DeveloperHomebrew communityMicrosoft
Package Manager TypeOpen-sourceWindows Package Manager
Install ApplicationsYesYes
Update ApplicationsYesYes
Update All Supported Appsbrew upgradewinget upgrade --all
Check for Updatesbrew outdatedwinget upgrade
Remove Applicationsbrew uninstallwinget uninstall

8. All Important Commands at a Glance

Here is a quick reference for the commands covered in this tutorial.

macOS – Homebrew

TaskCommand
Install Homebrewbrew installation script
Check Versionbrew --version
Update Homebrewbrew update
Check Outdated Appsbrew outdated
Update All Managed Appsbrew upgrade
Clean Old Filesbrew cleanup
Install an Applicationbrew install --cask app-name
Uninstall an Applicationbrew uninstall --cask app-name

Windows – WinGet

TaskCommand
Check Versionwinget --version
Update Package Sourceswinget source update
Check Available Updateswinget upgrade
Update All Supported Appswinget upgrade --all
Update One Applicationwinget upgrade --id APP.ID
Install an Applicationwinget install --id APP.ID
Uninstall an Applicationwinget uninstall --id APP.ID
View Helpwinget --help

9. Frequently Asked Questions (FAQs)

Q1. Is Homebrew free to use?

Yes. Homebrew is free and open-source software. You can install, manage, and update supported applications without paying for Homebrew itself.

Q2. Is WinGet already installed on Windows 11?

Most supported Windows 11 installations include WinGet through Microsoft’s App Installer. If it is missing, check for App Installer in the Microsoft Store.

Q3. Can Homebrew update applications downloaded manually from the internet?

Not necessarily. Homebrew manages applications installed through Homebrew. If you downloaded an application manually, Homebrew may not recognize or manage its updates.

Q4. Does WinGet update every application installed on Windows?

No. WinGet can only update applications it can identify and match with supported package sources. Some applications require manual updates or their own built-in update systems.

Q5. Do I need to run these commands every day?

No. Running them once every week or two is a reasonable maintenance routine for most personal computers. You can update more frequently if you regularly install software or use development tools.

Q6. Is it safe to use Homebrew and WinGet?

Both are widely used package managers. However, always use trusted package sources, review installation prompts, and check what you are installing. Updating applications does not replace installing operating system security updates.


Conclusion

Keeping your applications updated doesn’t have to be a tedious task.

Whether you use a Mac or Windows PC, package managers make software maintenance much easier.

If you’re using macOS, Homebrew gives you a convenient way to manage your applications through Terminal.

If you’re using Windows, WinGet offers a similar experience through Command Prompt or PowerShell.

Here are the two commands worth remembering:

For Mac:

brew update && brew upgrade && brew cleanup

For Windows:

winget upgrade --all

Save these commands somewhere convenient, and the next time you want to update your applications, you won’t need to open them one by one.

Happy updating!

Facebook
Twitter
LinkedIn

Other Posts