Skip to content

Add an exclude explicit targeting flag for the winget upgrade command #5353

@thepcwiz1012

Description

@thepcwiz1012

Description of the new feature / enhancement

Like for example i always keep getting this when running winget upgrade:

Name    Id              Version              Available            Source
------------------------------------------------------------------------
Spotify Spotify.Spotify 1.2.60.564.gcc6305cb 1.2.61.427.g5b75eb06 winget
2 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name    Id              Version  Available Source
-------------------------------------------------
Discord Discord.Discord 1.0.9187 1.0.9188  winget

If i run let's say a winget upgrade --exclude-explicit-targeting command should only say 1 upgrade available and that being Spotify.

Proposed technical implementation details

Add a flag that can only be used after upgrade called --exclude-explicit-targeting that excludes any packages that require explicit targeting for upgrade. Discord auto updates itself and i already have the latest version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-UpgradeIssue related to WinGet UpgradeIssue-FeatureThis is a feature request for the Windows Package Manager client.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions