Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Chocolatey know which packages are installed locally?

Tags:

chocolatey

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.

like image 828
Christian Avatar asked Jun 17 '15 15:06

Christian


People also ask

How do I know if Chocolatey packages are installed?

To verify that Chocolatey is installed, we will use the choco command. C:\WINDOWS\system32>choco Chocolatey v0. 10.15 Please run 'choco -?

Where are Choco apps installed?

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 (.


1 Answers

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.

like image 137
ferventcoder Avatar answered Sep 28 '22 07:09

ferventcoder