microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.5k stars 1.39k forks source link

Add option to stop updating windows inbox apps / store apps #4546

Closed soredake closed 2 weeks ago

soredake commented 2 weeks ago

Description of the new feature / enhancement

Right now winget will list updates even for inbox apps (that will be updated by Windows Update or in case of edge by its updater) and store apps (which will be updated by Microsoft Store), I think it's better to add option to make winget ignore these packages.

Example of such packages: Microsoft.DevHome (updated by microsoft store) Microsoft.Edge (updated by edge updater) Microsoft.EdgeWebView2Runtime (updated by edge updater) Microsoft.Office (updated by windows update) Microsoft.PowerShell (updated by microsoft store or windows update) Microsoft.WindowsTerminal (updated by microsoft store)

Proposed technical implementation details

No response

Trenly commented 2 weeks ago

You can use the command winget pin add <id> to skip these applications when using winget upgrade --all

https://learn.microsoft.com/en-us/windows/package-manager/winget/pinning

soredake commented 2 weeks ago

@Trenly I know that I can do it, but I think having such option would be nice, winget should not do unnecessary updating when there is already windows update/edge updater/etc doing this by default.