sodcalculator

10 Tech How-To

Windows Package Manager: What It Is & How to Use It

Guide 10-47661 · Updated · Step by step

Windows Package Manager (winget) is a command-line tool built into Windows 10 and Windows 11 that lets you install, upgrade, remove, and configure software from a central repository. Instead of visiting a website, downloading an installer, and clicking through setup wizards, you type one command and winget handles the download and installation for you. This guide explains what winget is, how it works, and how to start using it safely.

What Is Windows Package Manager (winget)?

Windows Package Manager, commonly called winget, is Microsoft’s official package manager for Windows. It was announced at Build 2020 and became a stable feature in Windows 10 1809 and later. The tool is open source and uses a community-maintained repository called the Windows Package Manager Community Repository (also known as the winget-pkgs repo) to find and install applications.

Think of it like the app store on your phone, but for your desktop. You can search for an app, see its version, and install it with a single command. Winget also tracks what you’ve installed and can update all your apps at once—something you’d normally have to do app-by-app.

The tool is standard on current Windows 11 installations and can be added to Windows 10 via the App Installer package from the Microsoft Store. It’s not a third-party tool; it’s built by Microsoft and ships with the OS.

How Winget Works

Winget works by querying a manifest file stored in a central repository. Each manifest describes a piece of software: its name, publisher, version, download URL, and installer type (e.g., MSI, EXE, or MSIX). When you run a command, winget:

  • Finds the matching manifest in the repository.
  • Downloads the installer file from the publisher’s official source.
  • Runs the installer silently (without showing the usual wizard) unless you specify otherwise.
  • Verifies the installation and reports success or failure.

The repository is community-driven, meaning anyone can submit a manifest for an app, but Microsoft reviews submissions to ensure they point to legitimate sources. This is a key safety feature—it reduces the risk of downloading from a fake or malicious site.

Winget also supports portable apps (no installation required) and can manage apps installed via Microsoft Store. It stores its configuration in a local SQLite database, so it knows what’s installed and what updates are available.

How to Install and Set Up Winget

On Windows 11, winget is usually already installed. To check, open a command prompt or PowerShell and type:

winget --version

If you see a version number, you’re good. If you get an error, you need to install the App Installer package from the Microsoft Store. Search for “App Installer” in the Store and install it. That package includes winget.

Once installed, you can run winget from any terminal. The first time you use it, it may ask you to accept the source agreement. Just type Y to accept.

Basic Winget Commands You’ll Use Daily

Here are the most common commands, with examples:

  • Search for an app: winget search <name> — e.g., winget search vlc returns a list of matching packages.
  • Install an app: winget install <ID> — e.g., winget install VideoLAN.VLC installs VLC media player.
  • Upgrade an app: winget upgrade <ID> — e.g., winget upgrade VideoLAN.VLC updates it to the latest version.
  • List installed apps: winget list shows everything installed via winget or detected on your system.
  • Uninstall an app: winget uninstall <ID> — e.g., winget uninstall VideoLAN.VLC removes it.

You can also use winget upgrade --all to update every app that has an available update. This is a huge time-saver.

Choosing the Right Package ID

Every app in the repository has a unique ID, usually in the format Publisher.AppName. For example, Google Chrome is Google.Chrome, and Notepad++ is Notepad++.Notepad++. You don’t need to memorize IDs—just search first:

winget search chrome

The output shows the ID, version, and source. Use the ID in your install command. If multiple versions exist (e.g., stable vs. beta), you may see multiple entries. Choose the one that matches your need.

You can also specify a version with --version flag, but it’s usually best to install the latest stable.

Common Problems and How to Fix Them

Winget is reliable, but you might hit a few snags:

  • “No installed package found matching input” — This means the app isn’t in the repository or the ID is wrong. Double-check the ID with winget search.
  • Installer fails silently — Some installers require admin rights. Run your terminal as Administrator (right-click → Run as administrator) and try again.
  • App not found in list after install — Winget may not detect apps installed outside its database. Use winget list to see what it knows.
  • Source agreement prompt — If you see a prompt to accept source terms, type Y and press Enter. This is normal.
  • Winget not recognized — This means the App Installer is missing. Install it from the Microsoft Store.

If an app installs but doesn’t work, try uninstalling and reinstalling manually—some apps have quirks with silent installs.

Winget vs. Other Package Managers

Winget isn’t the only option. Chocolatey and Scoop are popular third-party package managers for Windows. Here’s a quick comparison:

  • Winget — Built-in, official, uses a community repo reviewed by Microsoft. Good for most users.
  • Chocolatey — Older, widely used in enterprise, but its community repo has less strict vetting. Some packages require a paid license for commercial use.
  • Scoop — Focuses on portable apps, no admin rights needed, but has fewer packages and no GUI.

For a typical home user, winget is the safest and easiest choice because it’s official and integrated into Windows. If you need a specific app that isn’t in the winget repo, you can try Chocolatey or Scoop, but be aware of the security implications of third-party sources.

Safety and Best Practices

Winget is generally safe because it downloads installers from the publisher’s official URLs, not from random mirrors. However, you should still:

  • Always check the publisher’s ID before installing. A typo could lead to a malicious package.
  • Keep winget itself updated—Microsoft regularly improves its security.
  • Be cautious when using winget upgrade --all on a system you rely on—test updates on a non-critical machine first.
  • Review the manifest if you’re unsure—run winget show <ID> to see the download URL and installer type.

Winget doesn’t bypass UAC (User Account Control). If an installer needs admin rights, you’ll see a UAC prompt. That’s normal and expected.

Frequently Asked Questions

Is winget safe to use?

Yes, for the most part. Microsoft reviews the repository, and installers come from official sources. However, always verify the package ID and be cautious with third-party packages that aren’t well-known.

Can I use winget on Windows 10?

Yes, but you need to install the App Installer from the Microsoft Store. It works on Windows 10 1809 and later.

How do I update all apps at once?

Run winget upgrade --all. It will check for updates for every app winget knows about and install them one by one.

Does winget work with Microsoft Store apps?

Yes, winget can install and manage some Store apps, but not all. If an app is only available in the Store, you may need to use the Store itself.

What if an app isn’t in the winget repository?

You can request it by submitting a manifest to the community repo, or use an alternative like Chocolatey. But for most popular apps, winget already has them.

Can I use winget in scripts?

Absolutely. Winget is command-line based, so you can use it in PowerShell or batch scripts to automate installations across multiple machines.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →