Skip to content

winget list --upgrade-available says no installed package found matching input criteria when package is up to date #6645

Closed

Description

@mattias-aronsson

Relevant area(s)

WinGet CLI

Relevant command(s)

No response

Brief description of your issue

I upgraded powershell to latest version, then run below to confirm no more updates were needed:

PS> winget list --id Microsoft.PowerShell --upgrade-available
No installed package found matching input criteria.

This is confusing/bad message.

Without --upgrade-available, winget list --id Microsoft.PowerShell correctly shows the installed version.
The current message makes it sound as if WinGet no longer recognizes the installed package.

Steps to reproduce

  1. Install PowerShell 7 with WinGet.
  2. Run winget list --id Microsoft.PowerShell --upgrade-available while an update is available.
  3. Upgrade it with winget upgrade --id Microsoft.PowerShell.
  4. Run the list command again.

Expected behavior

Microsoft.PowerShell version 7.6.9.0, no update needed

Actual behavior

No installed package found matching input criteria.

Environment

[winget --info]

Windows Package Manager v1.29.380
© 2026 Microsoft. All rights reserved.

Windows: Windows.Desktop v10.0.26200.9457
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.380.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
Configuration Modules              %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

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
ConfigurationProcessorPath                Disabled
DefaultProxy                              Disabled

Activity

  1. added
    Issue-Bug
    Needs-Triage
    on Nov 2, 2026
  2. christopher-strings-justine commented on Nov 2, 2026

    @christopher-strings-justine
    Contributor

    I'd like to work on this issue.
    I'll first look for the relevant WinGet CLI code, and then work on a fix. Please let me know if this issue can be assigned to me.

  3. mattias-aronsson commented on Nov 4, 2026

    @mattias-aronsson
    Author

    Yes, that would be great if you have time, thanks!

  4. christopher-strings-justine commented on Nov 5, 2026

    @christopher-strings-justine
    Contributor

    Hi,

    this is an update from the issue #6645
    The change makes the output consistent when checking for available upgrades on packages that are already up to date.

    now, running:

    winget list --id Microsoft.PowerShell --upgrade-available

    displays the appropriate update-related messages instead of incorrectly reporting that no installed package was found.

    I've also added regression tests for both up-to-date and non-installed packages. All related tests are passing.

    Could you please review my PR and let me know if any changes are needed?

    proof

    Image

    output

    winget list --id Microsoft.PowerShell --upgrade-available
    UpdateNoPackagesFound
    UpdateNoPackagesFoundReason
    

    **if you want to have custom output behaviour such as

    Microsoft.PowerShell UpdateNoPackagesFound
    

    let me know if my code does job,then you can accept my merge request.

  5. mattias-aronsson commented on Nov 6, 2026

    @mattias-aronsson
    Author

    I built your updated code and got the same as your output.

    This is a good improvement, thanks for the superfast patch!
    If possible, it would be even better if the "UpdateNoPackagesFoundReason" was not displayed, as that provide no useful information as i see it.

    Or is it possible get "No packages need update"?

  6. christopher-strings-justine commented on Nov 6, 2026

    @christopher-strings-justine
    Contributor

    yes sure,

    can you make sure this
    you need output in this format?

    winget list --id Microsoft.PowerShell --upgrade-available
    UpdateNoPackagesFound
    
    winget list --upgrade-available
    No packages need update
    
  7. mattias-aronsson commented on Nov 6, 2026

    @mattias-aronsson
    Author

    Yes, that would be perfect.

  8. added a commit that references this issue on Nov 6, 2026
  9. christopher-strings-justine commented on Nov 6, 2026

    @christopher-strings-justine
    Contributor

    Greetings,

    I had made changes as Requested

    when the system has upto date packages

    winget list --id PackageName --upgrade-available
    UpdateNoPackagesFound
    
    winget list --upgrade-available
    NoPackagesNeedUpdate
    
  10. mattias-aronsson commented on Nov 6, 2026

    @mattias-aronsson
    Author

    oops, I meant to accept the PR

  11. christopher-strings-justine commented on Nov 6, 2026

    @christopher-strings-justine
    Contributor

    i thought my code failed

  12. mattias-aronsson commented on Nov 6, 2026

    @mattias-aronsson
    Author

    No it was just me clicking the wrong button.
    I am not used to PR and review on github. But I found the changed files, and sent an ok message with approved.
    So now its waiting for someone with write access to also check the code patch.
    Thx for the nice patch!

  13. added a commit that references this issue on Nov 7, 2026
  14. added a commit that references this issue on Nov 11, 2026
  15. technonath commented on Nov 24, 2026

    @technonath

    Is this actually fixed? Winget upgrade reports:

    Name Id Version Available Source

    PowerShell 7.6.10.0-x64 Microsoft.PowerShell 7.6.10.0 7.7.0.0 winget

    but fails with "no installed package found matching input" when you try to upgrade it.

    it should be reporting “A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.” according to https://attestree.com/research/powershell-7-7-no-msi-msix-as-system/ as MSI is no longer an available install method.

  16. mattias-aronsson commented on Nov 24, 2026

    @mattias-aronsson
    Author

    I only did a quick "source inspection", but did not compile and run it. I dont know how I can do this without activating the default winget installed in windows, or what dependencies is needed.

  17. technonath commented on Nov 25, 2026

    @technonath

    ok I have filed this as a new bug #6710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions