146

Probably a simple question, but how do I get Chocolatey to list which packages are currently installed on my system?

When googling, I end up at the question below. It is related but slightly different, and it doesn't have a simple answer to my question.

Is there a way to list chocolatey packages with their install directory

Grilse
  • 3,573
  • 3
  • 17
  • 14
  • Packages are installed in C:\ProgramData\chocolatey\lib (or in $env:ChocolateyInstall). See what is in there. – mihca Aug 05 '22 at 09:08

3 Answers3

165
choco list --local-only

Or:

clist -l

Source: https://chocolatey.org/docs/commands-list

This list all packages that are currently installed on your local machine, with version numbers.

λ  choco list --local-only
Chocolatey v0.10.8
7zip.commandline 16.02.0.20170209
(...)
41 packages installed.
Grilse
  • 3,573
  • 3
  • 17
  • 14
  • If this pops up another command window which then disappears, run your initial cmd/PowerShell window as Administrator. – TrueWill Aug 06 '18 at 14:08
  • 5
    clist will be deprecated in v2, and --local-only can also be invoked with --localonly or simply -l. – André Levy Apr 08 '22 at 02:22
  • 4
    As mentioned, the clist is being deprecated, and further, choco list is changing to only list the currently installed packages, therefore, going forward, the --local-only option is not required. I have updated my answer below with information on the choco export command, which may also be useful. – Gary Ewan Park Apr 04 '23 at 06:34
  • 3
    It's now removed. – Waldemar Wosiński Aug 16 '23 at 08:10
55

UPDATE:

Starting with version 0.11.0 of Chocolatey CLI, there is now a choco export command, which allows the creation of a packages.config file, which includes a list of all the currently installed packages on teh machine.

Details on this command can be found here:

https://docs.chocolatey.org/en-us/choco/commands/export

After executing this command, and generating the file, you can then do the following on another machine, which would allow on packages to be installed there:

choco install <path_to_generated_file>

ORIGINAL ANSWER:

Another alternative would be to install the official Chocolatey GUI application. This includes a tab which shows all the currently installed applications in your machine.

To install it, simply do:

choco install chocolateygui

The GitHub Repository for Chocolatey GUI can be found here:

https://github.com/chocolatey/ChocolateyGUI

And a screenshot of the UI can be seen here:

Chocolatey GUI Application Loaded

6

On Windows 10, PowerShell 7.3.8 through Windows Terminal 1.18:

> clist -l
clist: The term 'clist' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

> choco list --local-only Chocolatey v2.2.2 Invalid argument --local-only. This argument has been removed from the list command and cannot be used.

> choco list --localonly Chocolatey v2.2.2 Invalid argument --localonly. This argument has been removed from the list command and cannot be used.

> choco list Chocolatey v2.2.2 chocolatey 2.2.2 chocolatey-compatibility.extension 1.0.0 chocolatey-core.extension 1.4.0 chocolatey-windowsupdate.extension 1.0.4 composer 6.3.0 nodejs-lts 18.17.1 nuget.commandline 6.5.0 php 8.2.9 python 3.11.5 python312 3.12.0-a6 tinytex 2023.8.0 vcredist140 14.32.31326 vcredist2015 14.0.24215.20170201 yarn 1.22.19 24 packages installed.

So, choco list does the job on my system.

quantme
  • 175