How to install Microsoft Store apps and games on Windows 11 more efficiently with Windows Package Manager (aka winget)

Posted in:

How to use Microsoft's shiny new Windows Package Manager (aka winget) to more efficiently install Microsoft Store apps and games on Windows 11

Here’s how to use Microsoft’s new shiny Windows Package Manager, winget to search, install, and uninstall apps on Windows 11.

1. Type winget search {Name or Id} to search for the app you want to install.
2. winget install {Name or Id} to install an app
3. winget uninstall {Name or Id} to uninstall an app
4. winget features to view a list of experimental features.
5. winget settings to open the settings JSON file.
6. winget list to list all the apps that are installed on your PC.
7. winget install wingetcreate to install wingetcreate to submit an app package to contribute to the community repository.
8. winget export -o {file path} to export a list of all the apps installed on your PC to a file. You can pick the filename, file type and file location to anything you want.
9. winget upgrade --update to update all the apps on your PC, even ones that aren’t installed by Windows Package Manager!

Windows Package Manager, otherwise known as winget-cli, or winget for short, is an open-source client with a set of tools used to automate installing, upgrading, and managing applications, software, and even games on Windows 10 and Windows 11.

What is Windows Package Manager?

If you use Linux, package managers are more common and offer a more streamlined approach to allow you to install software quickly and easily by using command line. No need to go to a website or dedicated store to download apps and games.

If you use Windows, you probably use Microsoft Store or go to a website to download and install an app. On Windows 10, you can also use two popular package managers Chocolately and Scoop too.

The winget command line tool is bundled with Windows 11 and modern versions of Windows 10 (1809 and up) by default as App Installer from the Microsoft Store. App Installer includes the production version of the winget tool.

To install an app, type out a winget command in PowerShell as an administrator to install the software you want. If you want to find out what kinds of apps are available in winget, there are plenty of winget-cli packages available in the community GitHub repository.

If you’re interested in what kinds of applications you can install, first you need to install Windows Package Manager on your PC.

3 ways to install winget

Microsoft introduced Windows Package Manager preview at Build 2020, there were only two ways to install it. Now, there three methods to install winget on your Windows 11 PC.

1. Use a Microsoft Account to sign up for the Windows Insider Dev Channel.

2. Use a Microsoft Account to sign up for the Windows Package Manager Insiders Program. Once you sign up, your Microsoft Account will be used to update the App Installer app via the Microsoft Store.

3. Install the Windows Desktop App Installer package located on the Releases page for the winget repository. Installing this package will give you the winget client, but it won’t allow you to get automatic updates from the Microsoft Store.

Search, install and uninstall apps

Once installed, here’s how to search for and find packages to install on your PC. Here’s how to use the winget search {Id} command to find and install apps.

1. Type the following command in PowerShell or Command Prompt as an administrator:

winget search Microsoft and press Enter.
windows package manager

2. If you want to install a particular app that is listed, you will need to use the winget install command with the Name or Id of the app. The app Id might be a series of numbers, but the app Id can also be appear as an alternative name for the app or game.

For example, you want to install an app like “Microsoft HoloLens.” To install the app, use the following winget command with the app Id number for Microsoft HoloLens and press Enter:

winget install 9NBLGGH4QWNX

If entered correctly, Microsoft HoloLens will install automatically, and you will get a message showing your app or game was “successfully installed.”

windows package manager

Keep in mind, that some apps installed using winget may require you to agree to terms and/or accept license agreements before installing.

3. To uninstall an app: winget uninstall 9NBLGGH4QWNX

One pretty awesome thing about Windows Package Manager is that you can uninstall apps that you didn’t even use winget to install in the first place! Be sure that you have the right Name or Id to avoid removing the wrong app!

Advanced winget commands

Besides being able to search, install and uninstall apps using Windows Package Manager, there are a number of winget commands available. Here is a list of winget commands and what they do.

1. Type winget features and press Enter to see a list of experimental features available.
windows package manager
2. winget settings will take you to your settings JSON file.
3. winget list will list all the apps installed on your device.
4. winget install wingetcreate to install wingetcreate to be able to submit an app package to the GitHub repository.

If you need more help on the app package submission process, there is a fantastic video walkthrough provided by Demitrius Nelon, Senior Program Manager, APEX PM at Microsoft.
windows package manager
5. Type winget export -o C:/mylist.txt to export the list of apps installed to your PC as a file. You can change or rename the filename, change the file type, and change the location on your PC to whatever you prefer.
6. Use winget upgrade --all to update all of the apps installed to your PC to their latest versions. It is a fast and easy way to keep all your apps up to date.

Do you use Windows Package Manager or similar package managers on Windows or another operating system? Let us know in the comments!

< Previous

At last, Microsoft Word on the web is getting a dark mode

Top PowerShell commands you just have to try

Next >