How do I list all installed NuGet packages?

Rhodope picture Rhodope · Mar 12, 2014 · Viewed 56.8k times · Source

How does one list all locally installed NuGet packages?

Is there a NuGet equivalent of RPM -qa? Within Chocolatey there is the chocolatey list -localonly, but for the life of me I cannot find the NuGet equivalent of that command.

Answer

Philip Allgaier picture Philip Allgaier · Mar 12, 2014

In the NuGet Package Manager Console, enter the following command:

Get-Package

This will either print out a list of installed packages, or if none are present write the following line to the console:

PM> Get-Package
No packages installed.

For more details, have a look at the NuGet PowerShell Reference.