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 an option to "hide" or not download when "upgrade --all" is run. #4505

Closed DavidAdrian8ag closed 1 month ago

DavidAdrian8ag commented 1 month ago

Description of the new feature / enhancement

Sometimes when we purchased a license or something like that, the license only works for a particular version. And if we update we loose the license, so a way to "upgrade --all" but not including some apps will be great

Proposed technical implementation details

Create a "not show" in the upgrade list, may be to hide any program we dont want to upgrade, so we can add it into a list, and not shown and download when "winget upgrade --all" is run.

Thank you!

Trenly commented 1 month ago

Use winget pin add <ID> to exclude a package from winget upgrade --all https://learn.microsoft.com/en-us/windows/package-manager/winget/pinning

DavidAdrian8ag commented 1 month ago

Thanks a lot!!!