3

Chocolatey packages tend to accumulate when you have installed them long ago and have stopped using them later. I could go manually through a list of local packages

choco list -lo

But with a long list, it starts to be tedious. Is there a way to order the list by installation date? Something like

choco list -lo --order-by-install-date

I've gone through choco list help, but have only found ordering by popularity.

Is there any other simple of keeping track and uninstalling packages I don't need any more?

Dr_Zaszuś
  • 130
  • 5
  • 1
    Depending on the format of the list use PowerShell or copy to another kind of program and sort the output there. – Seth Apr 27 '18 at 09:57
  • Already found a solution how to sort the output? – Dominic Jonas Jan 10 '19 at 08:35
  • Unfortunately not. Only got advice above suggesting copying the output to a different program and sorting there. I’m still surprised such a basic functionality is absent. – Dr_Zaszuś Jan 22 '19 at 15:59

1 Answers1

2

This snippet of Powershell will list all installed packages (not just those managed by Choco) and order them by installed date:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-Object InstallDate
roderickm
  • 121
  • 2