Install Apps with Winget on Windows 11
In this article
Yes, you can install apps using Winget (the Windows Package Manager) on Windows 11. Winget is a command-line tool built into Windows 11 that downloads and installs software from the Microsoft Store and reputable repositories, saving you from hunting down installers manually. You'll need an internet connection and a command prompt or PowerShell window. Here's the step-by-step guide.
What You'll Need
- Windows 11 (version 21H2 or later) – Winget is preinstalled on most current builds.
- An internet connection.
- Administrator rights (for some installations, but not all).
- Basic comfort with typing commands in a terminal.
Step-by-Step
- Open a terminal. Right-click the Start button and select “Terminal” or “Windows Terminal”. You can also press Win + R, type
cmd, and press Enter. If you prefer PowerShell, open it the same way. - Check that Winget is available. Type
winget --versionand press Enter. You should see a version number likev1.7.x. If you get an error, see the Troubleshooting section below. - Search for an app. Use the command
winget search <app name>. For example, to find VLC media player, typewinget search VLC. This will list matching packages with their ID, source, and version. - Identify the exact package ID. Look at the “Id” column in the search results. For VLC, it’s usually
VideoLAN.VLC. Use this ID in the install command to avoid ambiguity. - Install the app. Type
winget install <package ID>and press Enter. For example:winget install VideoLAN.VLC. Winget will download and install the app automatically. - Accept source agreements if prompted. On first use, Winget may ask you to agree to the source terms. Type
yand press Enter, or use the--accept-source-agreementsflag in the command. - Wait for the installation to finish. You'll see progress bars and a success message like “Successfully installed”. The app is now available in your Start menu.
- Run the app. You can launch it from Start or by typing its name in the search bar. No need to restart your PC unless the installer specifically asks.
Note: Menu and command labels can vary slightly by Windows version, but the core commands above are stable.
Common Mistakes
- Typing the app name instead of the ID. If you type
winget install VLC, Winget may still find it, but it can be ambiguous. Always use the exact ID from the search result. - Forgetting to update Winget itself. An outdated Winget can fail to find newer packages. Run
winget upgrade --allorwinget self-updateto keep it current. - Not running as administrator. Some installers need elevated rights. Right-click your terminal and select “Run as administrator” if you get an access denied error.
- Using the wrong source. By default, Winget uses the “winget” source. If you’ve added other sources (like a private repo), results can be confusing. Stick to the default unless you know what you’re doing.
Tips
- Install multiple apps at once. You can chain IDs:
winget install VideoLAN.VLC Notepad++.Notepad++. - Upgrade all installed apps. Use
winget upgrade --allto update everything in one go. - Export and import your app list.
winget export -o apps.jsonsaves your installed apps;winget import -i apps.jsonreinstalls them on a new PC. - Use the
--silentflag to suppress UI prompts:winget install --silent VideoLAN.VLC. - Check the exact package name with
winget show <ID>before installing to see version and source details.
Troubleshooting
If Winget isn't working, try these in order:
- Restart your terminal. Close and reopen it, then try again.
- Check your internet connection. Winget needs to reach the package repositories.
- Update Winget. Run
winget self-updateorwinget upgrade --all(this may update Winget itself). If that fails, download the latest version from the official Microsoft Store page for “App Installer”. - Run as administrator. Right-click the terminal and choose “Run as administrator”. Some installers require elevated privileges.
- Sign out and back in. Occasionally, a user profile issue can interfere. Sign out of Windows and sign back in.
- If a specific app fails to install, check the error code. A common one is
0x8A15000B, which often means the installer requires a GUI or manual steps. Try installing that app manually from its official website. - Reinstall Winget. As a last resort, you can reset the App Installer app via Settings > Apps > Installed apps > App Installer > Advanced options > Reset. This will clear its data but won’t remove your installed programs.
Frequently Asked Questions
Is Winget free?
Yes, Winget is a free built-in tool in Windows 11. The apps you install may have their own licenses, but the tool itself costs nothing.
Can I use Winget to install apps from the Microsoft Store?
Yes, Winget can install many Store apps, but not all. Some Store-only apps may not be available via Winget. Use winget search to see if the app is listed.
Will Winget uninstall apps?
Yes, use winget uninstall <ID> to remove an app.
What if I don't know the exact app ID?
Use winget search with a partial name. For example, winget search notepad will list all matching packages.
Can I use Winget in PowerShell instead of Command Prompt?
Yes, Winget works in both PowerShell and Command Prompt. The commands are identical.
Does Winget update all my apps automatically?
No, it doesn't run automatically. You need to run winget upgrade --all manually, or set up a scheduled task if you want it automated.