Prerequisites
Before you begin, ensure WinGet is installed on your system. See the Installation Guide if you haven’t installed it yet. Verify WinGet is installed:Your First Package Installation
Let’s install a popular package to get familiar with WinGet.Search for a package
Search for available packages using This returns a list of packages matching your search term with their IDs and sources.
winget search:Install the package
Install a package using its ID:WinGet will download and install the package automatically. You may be prompted for administrator permissions.
Essential Commands
Here are the most commonly used WinGet commands to get you started:Search for Packages
Find packages in the WinGet repository:Install Packages
Install packages by ID or name:List Installed Packages
View packages installed on your system:Upgrade Packages
Keep your software up to date:Uninstall Packages
Remove packages you no longer need:Show Package Details
Get detailed information about a package:Working with Sources
WinGet uses package sources to discover and install software. By default, two sources are configured:- winget - The WinGet community repository
- msstore - Microsoft Store packages
List Sources
Update Sources
Refresh package metadata from sources:Common Workflows
Setting Up a New Development Environment
Install multiple packages at once:winget import (see Import/Export).
Keeping Your System Updated
Create a routine to keep all packages current:Finding the Right Package
When searching, use package IDs for precision:Package IDs are case-sensitive. Use
winget show <id> to verify the exact ID before installing.Understanding Package Sources
WinGet can install from multiple sources:- winget source: Community-maintained packages
- msstore source: Microsoft Store apps
- Private sources: Enterprise or custom repositories
Managing Settings
Configure WinGet behavior through settings:settings.json in your default editor. Common settings include:
- Progress bar style
- Default installation behavior
- Network configuration
- Experimental features
Administrator Privileges
Some packages require administrator privileges to install. WinGet behavior varies based on your permissions: Non-administrator prompt:- Windows will prompt you to elevate if the installer requires it
- You can decline elevation, but the installation will fail
- No elevation prompts appear
- All installers run with elevated privileges
Troubleshooting
If you encounter issues:Command not found
Command not found
WinGet may not be on your PATH. Restart your terminal or see Troubleshooting for solutions.
Package not found
Package not found
Update your sources with
winget source update and try again. The package may not be available in the default sources.Installation fails
Installation fails
Check if you need administrator privileges. Run your terminal as administrator and try again.
Network errors
Network errors
Ensure you have internet connectivity and check proxy settings in Configuration Settings.
Next Steps
Command Reference
Explore all available WinGet commands
Settings
Customize WinGet behavior and preferences
Package Sources
Learn about sources and add private repositories
PowerShell Module
Use WinGet from PowerShell scripts