microsoft / microsoft/winget-cli
Exclude packages from Windows Package Manager
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
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 https://github.com/microsoft/winget-cli/issues/2313#issuecomment-1184301303
edit:
We've also been discussing the exclusion of these packages from winget export packages.json
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the winget exclude and winget upgrade --all command flows, then review how winget export packages.json handles installed packages. Define the exclusion behavior and persistence across these commands, with completion shown by tests covering excluded packages during upgrades and export.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100