microsoft / microsoft/winget-cli

Exclude packages from Windows Package Manager

Open
#2,339 11 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.