microsoft / microsoft/winget-cli
--include-unknown shows a lower number of packages after running "winget upgrade --all"
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
When running winget upgrade to update packages on my Windows 11 system, I'm running into the following behavior:

As you can see in the screenshot above, winget says there's 8 packages with version numbers it can't be determined, but using the flag of --include-unknown to list them all shows only 3
Steps to reproduce
Run "winget upgrade --all" let it install all upgrades/updates and check for the output of how many packages are missing
Expected behavior
It should match the same number of packages when you'll run "winget upgrade --include-unknown"
Actual behavior
The number of packages with version numbers that can't be determined are mismatching
Environment
winget --info:
Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.382
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
--
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22621 N/A Build 22621
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 reproducing the issue with winget upgrade --all and winget upgrade --include-unknown on the stated Windows 11 and WinGet versions, then compare how each command counts packages with unknown versions. Done means both commands report the same unknown-package count after upgrades complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100