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.
choco list -loonly 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%\libwhen you calllist -lo. If several versions of the same package exist, only the latest version will be listed. Uselist -lo -ato 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
-ias an option. Seechoco list -hor the docs page for details.