source update command refreshes the package index from configured sources. You can also use the refresh alias.
Syntax
Options
Update specific source by name. If omitted, updates all sources.
Examples
Update all sources:Behavior
The update command:- Downloads the latest package index from each source
- Updates local cache with new package metadata
- Validates index integrity
- Reports success or failure for each source
Output
Automatic Updates
WinGet automatically updates sources in the background. Manual updates are typically only needed:- After adding a new source
- When troubleshooting package search issues
- To ensure latest package data before critical operations
Update Interval
By default, WinGet checks for source updates every 24 hours. This can be configured via Group Policy:- Policy:
SourceAutoUpdateIntervalInMinutes - Default: 1440 minutes (24 hours)
Troubleshooting
If update fails:Exit Codes
0- Success0x8A150016- Source not found0x8A150017- Source update failed (network error, invalid data, etc.)
Source updates require network connectivity to download package indices.
Updating sources doesn’t require administrator privileges unless the source configuration requires it.