-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude packages from Windows Package Manager #2339
Comments
Discussion about this feature: |
How is this use case different than #476 ? |
As a guess, is the use case for this possible different from pin as pin is "I want to track this package, but not upgrade it" while exclude would be "I don't want to have winget recognize this package at all". E.g. doesn't show up in winget export and list. |
Pin and unpin needs to be explained and documented. Exclude is recognized by Microsoft in other apps and has switches such as /XO /XF in use by Robocopy. winget upgrade --all -h --accept-package-agreements -XF c:\excluded.pakages.txt or winget upgrade --all -h --accept-package-agreements -XP:"Microsoft.Teams|1.5.00.14473","VideoLAN.VLC|3.0.17.4" I think you can see that I want to assemble the command or have the option of placing a package list so winget upgrades everything but the excluded packages. |
Draft PR in progress: |
|
I disagree. #1439 is more around pinning -
|
There have been several concerns around the behavior of Pinning is critical functionality in the client, but in some cases Other related features have been dealing with "Unknown" versions and ignoring packages that upgrade themselves with respect to |
In addition to that, there should be an interactive way to select the packages to upgrade. I don't mean running all of them in an interactive way, but something like running This would present a list of packages which would be upgraded, so the user can decide if to really upgrade all of them, or pick/skip some (perhaps even mark as pinned or excluded altogether). Another benefit of this option would be ensuring that |
To add color/context to the ask: I run |
This can be done using |
I would like to be able to exclude packages from the Windows Package Manager.
winget exclude <package>
would mark a package as excluded.It should not be upgraded with
winget upgrade --all
I'm also seeing this issue with several packages. One solution that I have thought of is for there to be an option to hide packages from winget. i.e. if there is a package that I don't want winget to manage and I will manage manually, add it to some exclusion list.
Originally posted by @dgee2 in #2313 (comment)
edit:
We've also been discussing the exclusion of these packages from
winget export packages.json
The text was updated successfully, but these errors were encountered: