Skip to content

winget list does not have the same list of items as Get-WinGetPackage #6136

@ns-hsundararajan

Description

@ns-hsundararajan

Relevant area(s)

WinGet CLI

Relevant command(s)

winget list

Brief description of your issue

The packages shown in winget list does not match the packages shown in Get-WinGetPackage

Steps to reproduce

I don't know how to reproduce generically, but in my laptop this happens

> winget list zoom
Name                    Id        Version   Available Source
------------------------------------------------------------
Zoom Workplace (64-bit) Zoom.Zoom 7.0.33767 7.0.34412 winget
Zoom Workplace (64-bit) Zoom.Zoom 6.7.32670           winget
> powershell Get-WinGetPackage zoom

Name           Id        Version   Available Source
----           --        -------   --------- ------
Zoom Workplace Zoom.Zoom 7.0.33767 7.0.34412 winget

Expected behavior

I expect the package list shown by both the winget cli and the powershell command to be the same.

Actual behavior

The package list shown by both the winget cli and the powershell commands are not the same.

Environment

>winget --info
Windows Package Manager v1.28.220
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26200.8037
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.220.0


I would just stick to `winget list` but it has the annoying behavior of truncating the ID, and the only way out seems to be to use powershell, but powershell does not list all the packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ListIssue related to WinGet ListIssue-BugIt either shouldn't be doing this or needs an investigation.PowerShellIssue related to WinGet PowerShell Module or cmdlet

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions