microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.54k stars 1.39k forks source link

WinGet "List" without hitting the network #4449

Open denelon opened 1 month ago

denelon commented 1 month ago

Description of the new feature / enhancement

Sometimes I want to get an inventory of the devices and I don't want to incur the cost of the network traffic or performance hit to query the available versions, and or the sources where these packages are available.

This would likely be some kind of argument passed to the "list" command.

The scenario was proposed by an IT administrator looking to get an inventory of the installed packages and their versions.

Proposed technical implementation details

No response

jantari commented 1 month ago

Same thing for winget export please

denelon commented 1 month ago

WinGet export needs the correlation with package identifiers to succeed. I'm not sure that would work for an offline scenario. Even with WinGet list avoiding network traffic, the identifiers wouldn't be present, but it could show the display name, version, and some unique identifier from the system (package family name, product code, registry key, etc.). This version of list wouldn't be able to include a WinGet package identifier without first downloading the index for correlation.