我尝试使用winget
如下方法:
C:\Windows\System32>winget update --all
Name Id Version Available Source
-----------------------------------------------------------------------------------
Cisco Webex Meetings Cisco.CiscoWebexMeetings 43.10.0 45.2.1.2 winget
NVIDIA GeForce NOW 2.0.71.162 Nvidia.GeForceNow 2.0.71.162 2.0.73.139 winget
2 upgrades available.
1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
(1/1) Found NVIDIA GeForce NOW [Nvidia.GeForceNow] Version 2.0.73.139
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://ota-downloads.nvidia.com/ota/GeForceNOW-release_4BFB97.exe
██████████████████████████████ 165 MB / 165 MB
Successfully verified installer hash
Starting package install...
Successfully installed
122 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
C:\Windows\System32>
请注意,检测到了 122 个未指定版本的软件包。当我尝试使用命令 时winget update --include-unknown
,它仍然返回相同的列表。但是,如果我尝试winget update -all --include-unknown
,它就会开始下载这 122 个软件包,其中大多数我甚至都不知道。
我只是想查询那些未知的软件包,而不是更新它们。有什么办法吗?
winget list
您可以通过使用和过滤输出来获取检测到的所有未知版本号的应用程序的列表。在 PowerShell 中,您可以使用: