Windows Guide

Update Every App on Your PC With One Command (winget, Explained)

Most Windows apps update themselves in their own way. Some nag you with a popup, some install a background service that runs forever, and some never update at all until you notice you're three versions behind. If you have twenty or thirty apps installed, keeping all of them current by hand is a chore nobody actually does.

Windows has had a fix for this for a few years now, and a surprising number of people have never opened it. It's called winget, the Windows Package Manager, and it ships with Windows 11 and current versions of Windows 10 as part of the App Installer package.

Check that you have it

Open Terminal or PowerShell (right-click the Start button, then Terminal) and type:

winget --version

If you get a version number back, you're set. If Windows says the command isn't recognised, open the Microsoft Store, search for App Installer and update it. That's the package winget comes in.

The command you'll actually use

Run this and winget lists every installed program it knows a newer version of:

winget upgrade

You'll see a table with the app name, the version you have and the version available. To update everything in that list in one go:

winget upgrade --all

Some installers need administrator rights and will trigger a UAC prompt for each app. If you'd rather approve once, run Terminal as administrator before you start. Adding --silent asks installers not to show their own windows, though not every installer respects it.

The first time you run any winget command it may ask you to accept the source agreements for the Microsoft Store and the community repository. That's normal. Type Y and it won't ask again.

Installing new apps

Searching works the way you'd expect:

winget search vlc

The result shows a name and an Id such as VideoLAN.VLC. Install by Id rather than by name, because names can match more than one package:

winget install --id VideoLAN.VLC -e

The -e flag means exact match. Without it, winget does a looser match, which is how people end up installing a different app with a similar name. It's a two-character habit worth building.

Removing an app is winget uninstall --id VideoLAN.VLC -e. It runs the app's own uninstaller, so it behaves the same as removing it from Settings.

Setting up a new PC in five minutes

This is where winget really earns its place. On your current machine, run:

winget export -o apps.json

That writes a JSON file listing every app winget can identify on your system. Copy it to the new PC and run:

winget import -i apps.json

Winget installs everything in the list, one after another. You can edit the JSON before importing and delete anything you don't want to carry over. After a clean Windows install this saves an afternoon of downloading installers from twenty different websites.

Things that will confuse you the first time

"Unknown" versions

Some apps show Unknown as their installed version. That happens when the app didn't register a version number with Windows. Winget can't compare versions it can't read, so those apps are skipped by upgrade --all. Adding --include-unknown makes winget try anyway; it usually works, but now and then it reinstalls the same version.

Apps that update themselves

Browsers like Chrome and Firefox, and apps like Discord or Steam, update themselves in the background. Winget might list them as upgradeable for a short window before their own updater catches up. It's harmless to let winget update them, but it's not necessary either. If an app keeps showing up and you'd rather winget left it alone, pin it:

winget pin add --id Discord.Discord

Apps that are open

An installer can't replace files that are in use. If an upgrade fails, close the app (check the notification area too, many apps hide there) and run the command again.

Store apps

Apps installed from the Microsoft Store appear in winget's list too, under the msstore source. The Store updates them on its own schedule, so you mostly don't need to touch them.

Is it safe?

It's a fair question, since winget downloads and runs installers for you. The community repository is public on GitHub (microsoft/winget-pkgs). Every package manifest points to the vendor's own download URL with a SHA-256 hash, and submissions go through automated checks and review before they're merged. When winget downloads an installer it verifies the hash, so a swapped file won't install.

That doesn't make every package in the repository trustworthy. It means the file you get is the file the manifest says it is. Stick to well-known apps and install by Id, and you're getting the same installer you'd download from the vendor's site, just without the browser.

Making it a habit

I'd suggest running winget upgrade once a week. Read the list first rather than going straight to --all; it takes ten seconds and it's how you notice an app you forgot you had installed. If you see one of those, winget uninstall it on the spot. Fewer apps means fewer background updaters, which also helps with startup time and memory use.

If you want it fully hands-off, you can create a Task Scheduler task that runs winget upgrade --all --silent --accept-package-agreements --accept-source-agreements weekly. I wouldn't do that on a machine you depend on for work, though. An unattended major update to an app you rely on is exactly the kind of surprise you want to see coming.