How does one list all locally installed NuGet packages?
Is there a NuGet equivalent of RPM -qa? Within Chocolatey there is the chocolatey list -loc
If you have the .NET Core runtime installed, you can use the dotnet list package command in the .NET Core CLI tools to fetch installed packages for a given solution or project. Use it like so from the Windows command line:
dotnet list "C:\Source\MySolution\MySolution.sln" package
It works on both .NET Framework and .NET Core projects.
Note: For this command to work, the solution must use the new NuGet PackageReference format for referencing NuGet packages. Migration is as easy as right-clicking packages.config, and clicking "Migrate packages.config to PackageReference...", then restoring packages by building the solution.