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?

  • 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 9:57
  • Already found a solution how to sort the output? 😬 – Dominic Jonas Jan 10 '19 at 8: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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.