chocolatey version all version for a specific package added #260
Conversation
usage: .\chocolatey.ps1 version sysinternals -version all -lo we might need to do a compare-object allinstalled current to get a list of 'old' packages to not cleanup if using cup. Currently cup doesnt do any cleanup and orphans packages in lib
overall we probably need a refactor of this function (probably a whole bunch of them) but anyway- this adds the ability to get alist of all versions of a product installed. |
I think we need to look at list or search -localonly - It's much much faster.
|
So this is going to be |
I mean super fast :) |
Should we add a task, somewhere, to get the documentation updated to reflect this change, or where do things like that get logged so they are not forgotten? |
It will be a documentation change. Cver is very specific and clist is not. On Friday, April 26, 2013, Gary Ewan Park wrote:
Rob http://devlicio.us/blogs/rob_reynolds |
Ok - so this is confusing...as clist and cver have been for quite some time. But I think we are missing the intent for this PR. I am running the current source version now... (btw - sysinternals is pkg version for demonstrative purposes) C:\Chocolatey> chocolatey version sysinternals -version all -lo
name found
---- -----
sysinternals 1.2012.05.20130124
sysinternals 2.0
This is the list of packages installed locally on my system. The chocolatey list sysinternals -lo -all gives this (which looks like a
sysinternals 1.2012.05.20130124
sysinternals 1.2012.05.23 This is the list of packages on the feed. not sure what local only does in this use case, unless it is not developed yet... |
Perhaps I was obtuse...My goal for this PR, was to be able to query locally installed packages and their respective versions (and not check feed) and return as an object. |
It is developed, but you have to have the latest source installed. Otherwise the -lo is going to be ignored. I just added it last night. :) |
It points to the local chocolatey lib folder as a source and good old nuget to do the searching. |
I just built it from source 30 min ago... |
We can upgrade the list to return object - I'm not sure if it does now. |
usage: .\chocolatey.ps1 version sysinternals -version all -lo
we might need to do a compare-object allinstalled current to get
a list of 'old' packages to not cleanup if using cup. Currently
cup doesnt do any cleanup and orphans packages in lib