microsoft / microsoft/winget-cli
winget upgrade does not list some applications but list does
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
WInget Upgrade is not identifying some applications when checking however if listed individually they are.
I am relying on the winget uprgade to capture and leverage upgrades for some appolications and currently some examplesss such as node.js are not being displayed.
Steps to reproduce
Install node.js 17.9.1
Run winget upgrade command results are:
`
winget upgrade
Name Id Version Available Source
Microsoft Visual Studio 2010 Tools for Office R… Microsoft.VSTOR 10.0.60910 10.0.60917 winget
Notepad++ (64-bit x64) Notepad++.Notepad++ 8.7.5 8.7.6 winget
Microsoft Visual C++ 2013 Redistributable (x64)… Microsoft.VCRedist.2013.x64 12.0.40660.0 12.0.40664.0 winget
Microsoft Visual C++ 2013 Redistributable (x86)… Microsoft.VCRedist.2013.x86 12.0.40660.0 12.0.40664.0 winget
Windows Assessment and Deployment Kit Microsoft.WindowsADK 10.1.26100.1 10.1.26100.2454 winget
Microsoft Windows Desktop Runtime - 8.0.11 (x64) Microsoft.DotNet.DesktopRuntime.8 8.0.11 8.0.12 winget
Microsoft ASP.NET Core 6.0.35 - Shared Framewor… Microsoft.DotNet.AspNetCore.6 6.0.35 6.0.36 winget
Microsoft Visual C++ 2015-2022 Redistributable … Microsoft.VCRedist.2015+.x64 14.38.33135.0 14.42.34433.0 winget
Microsoft Visual C++ 2015-2019 Redistributable … Microsoft.VCRedist.2015+.x86 14.28.29325.2 14.42.34433.0 winget
Microsoft Visual Studio Code (User) Microsoft.VisualStudioCode 1.96.2 1.96.4 winget
Windows App Microsoft.WindowsApp 2.0.294.0 2.0.328.0 winget
14 upgrades available.`
As noted Node.js is not listed but if list command is used specifically for node.js
`
winget list nodejs
Name Id Version Available Source
Node.js OpenJS.NodeJS 17.9.1 23.6.1 winget`
Atteempting winget upgrade-e results in
`
winget upgrade -e
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
Node.js ARP\Machine\X64{E25AFF60-6DB3-41D7-A310-15E822DD0E7B}
###`
calling for a speciffic upgrade works:
winget upgrade Node.js Found Node.js [OpenJS.NodeJS] Version 23.6.1 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://nodejs.org/dist/v23.6.1/node-v23.6.1-x64.msi ██████████████████████████████ 29.9 MB / 29.9 MB Successfully verified installer hash Starting package install... Successfully installed
Now if we do a list node.js will be display the id:
`winget list
Name Id Version Available Source
Node.js OpenJS.NodeJS 23.6.1 winget`
Expected behavior
Expected WInget upgrade to list node.js and available update version.
Actual behavior
See steps to reprduce.
Software is not displayed when running upgrade parameter.
Environment
winget --info
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.4317
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0
Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
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 behavior with the reported winget upgrade, winget list nodejs, and winget upgrade -e commands on the stated Windows Package Manager version. Compare how the upgrade and list commands identify Node.js, then verify that winget upgrade displays the available update without requiring a package-specific command.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100