How does Chocolatey determine which packages are installed on the local system?
Somehow choco list -localonly
lists packages installed locally and invokes nuget.exe
in the process. In NuGet I know packages.config
lists installed packages, but in Chocolatey I don't seem to find a similar file.
To verify that Chocolatey is installed, we will use the choco command. C:\WINDOWS\system32>choco Chocolatey v0. 10.15 Please run 'choco -?
Chocolatey packages are installed to ChocolateyInstall\lib , but the software could go to various locations, depending on how the package maintainer created the package. Some packages are installed under ChocolateyInstall\lib , others - especially packages that are based on Windows installers (.
choco list -lo
only lists the latest versions of the packages you have installed.
Old choco invoked nuget.exe, new choco (0.9.9+) does it directly since it has nuget.core built-in.
It does a list against %ChocolateyInstall%\lib
when you call list -lo
. If several versions of the same package exist, only the latest version will be listed. Use list -lo -a
to show all versions of the same package available locally.
Further, it is not based on folders, but on the actual nupkg files in those folders.
If you want a list of programs and features, add -i
as an option. See choco list -h
or the docs page for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With