可能是一个简单的问题,但我如何让 Chocolatey 列出当前安装在我的系统上的软件包?
谷歌搜索时,我最终得到了下面的问题。它相关但略有不同,并且对我的问题没有简单的答案。
Gri*_*lse 97
choco list --local-only
Run Code Online (Sandbox Code Playgroud)
或者:
clist -l
Run Code Online (Sandbox Code Playgroud)
来源:https : //chocolatey.org/docs/commands-list
这列出了当前安装在本地计算机上的所有软件包,以及版本号。
? choco list --local-only
Chocolatey v0.10.8
7zip.commandline 16.02.0.20170209
(...)
41 packages installed.
Run Code Online (Sandbox Code Playgroud)
Gar*_*ark 35
另一种选择是安装官方的 Chocolatey GUI 应用程序。这包括一个选项卡,显示您机器中当前安装的所有应用程序。
要安装它,只需执行以下操作:
choco install chocolateygui
可在此处找到 Chocolatey GUI 的 GitHub 存储库:
https://github.com/chocolatey/ChocolateyGUI
可以在此处看到 UI 的屏幕截图:
在 Windows 10、PowerShell 7.3.8 到Windows Terminal 1.18 上:
> clist -l
clist: The term 'clist' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
> choco list --local-only
Chocolatey v2.2.2
Invalid argument --local-only. This argument has been removed from the list command and cannot be used.
> choco list --localonly
Chocolatey v2.2.2
Invalid argument --localonly. This argument has been removed from the list command and cannot be used.
> choco list
Chocolatey v2.2.2
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-windowsupdate.extension 1.0.4
composer 6.3.0
nodejs-lts 18.17.1
nuget.commandline 6.5.0
php 8.2.9
python 3.11.5
python312 3.12.0-a6
tinytex 2023.8.0
vcredist140 14.32.31326
vcredist2015 14.0.24215.20170201
yarn 1.22.19
24 packages installed.
Run Code Online (Sandbox Code Playgroud)
那么,choco list
我的系统上的工作就完成了。
归档时间: |
|
查看次数: |
42774 次 |
最近记录: |