title: How does Chocolatey know which packages are installed locally?
body: <p>How does <a href="https://chocolatey.org/">Chocolatey</a> determine which packages are installed on the local system?</p>
  
  <p>Somehow <code>choco list -localonly</code> lists packages installed locally and invokes <code>nuget.exe</code> in the process. In NuGet I know <code>packages.config</code> lists installed packages, but in Chocolatey I don't seem to find a similar file.</p>