choco icon indicating copy to clipboard operation
choco copied to clipboard

`choco update all` should list the actual packages that are being updated

Open ghost opened this issue 10 years ago • 4 comments

PS C:\WINDOWS\system32> cup all
Chocolatey v0.9.9.4
Upgrading the following packages:
all
By upgrading you accept licenses for the packages.
ccleaner v5.04.5151 is the latest version available based on your source(s).
vlc v2.2.0 is the latest version available based on your source(s).
[...]

It really should list the actual packages there instead of saying it's upgrading the package called all.

ghost avatar Mar 31 '15 13:03 ghost

That could be a REALLY long list.

ferventcoder avatar Mar 31 '15 17:03 ferventcoder

The list will end up showing anyway...

What would be great (but maybe harder) would be to wait for the listing to complete before executing the updates, e.g.:

PS C:\WINDOWS\system32> cup all
Chocolatey v0.9.9.4
Upgrading all installed packages.
By upgrading you accept licenses for the packages.
[ ] package-name v0.0.0 is the latest version.
[ ] package-name v0.0.0 is the latest version.
[x] package-name v0.0.0 is installed, update v0.0.0 is available.
[...]

Or, a simpler version may be to keep the exact same output, but run the version check first.

Finally, after showing this list, a single confirm prompt may be shown so that once the user knows what the updates will be, they can decide to continue.

A good example of when this is useful is when upgrading conemu; because it will kill the console running Chocolatey when upgrading, I would cancel and update it separately.

christianrondeau avatar Apr 19 '15 19:04 christianrondeau

That sounds like a good idea.

ghost avatar Apr 19 '15 20:04 ghost

Finally, after showing this list, a single confirm prompt may be shown so that once the user knows what the updates will be, they can decide to continue.

I think we need to hammer out exactly how this is going to work, and how it relates to -whatif and -y, and how it might behave assuming https://github.com/chocolatey/choco/issues/1261 is implemented.

It sounds like, at the end of the day, this suggestion is an enhancement for -whatif. Change the functionality of -whatif to ask the user if they want to go ahead and install the updatable packages?

As I see it, this is an improvement over the current workflow, where

  1. cup all -whatif checks all packages for updates
  2. cup all -y again rechecks all packages for updates

A -whatif where we could proceed would cut the time of this process in half, since we wouldn't be checking all packages for updates twice.

What happens when we combine some of these switches? Does -whatif -y still ask the user if they want to proceed? Where -whatif is just presenting the list of packages to be updated, and -y is understood to accept each individual package in that list.

AeliusSaionji avatar Apr 22 '17 05:04 AeliusSaionji