Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run "choco upgrade all" ignoring specific packages #293

Closed
christianrondeau opened this issue May 27, 2015 · 8 comments
Closed
Assignees
Milestone

Comments

@christianrondeau
Copy link
Contributor

Example use cases:

  • Every morning I run cup all -y using ConEmu. If ConEmu has an update available, it kills the update process as the console restarts. I want to upgrade ConEmu last.
  • I'm using Skype with someone and run cup all, it closes Skype and stops my call. I want to upgrade Skype later

I suggest adding a new except argument to the choco upgrade command:

cup all -y --except=ConEmu
cup ConEmu -y

Even better would be able to provide a list of exceptions, e.g.:

cup all -y --except=Conemu,Skype

For the original conversation, see https://groups.google.com/forum/#!topic/chocolatey/kh-qq_4o2UA

@ferventcoder ferventcoder changed the title Ability to run "choco upgrade all" with exceptions Ability to run "choco upgrade all" ignoring specific packages Jun 1, 2015
@ferventcoder
Copy link
Member

Sorry, needed to change the title. It will continue to run when there are errors (which is closely related to the word exception) and I didn't want to confuse myself.

@pyhedgehog
Copy link

Can't choco pin help you?
I'm using it for this purpose. However I'm running choco outdated beforehand.

@christianrondeau
Copy link
Contributor Author

@pyhedgehog It could, but pin is "permanent", so here's what I'd have to run for the "sequence" problem:

cup pin add -n=ConEmu
cup all -y
cup pin remove -n=ConEmu
cup ConEmu -y

Same thing for when I don't want to update on specific software, I could also use pin but if I can easily forget to remove it. Also, "pinning" is not the intention here, so it's less obvious.

Otherwise, you are correct that pinis the solution until there is a --expect parameter.

@pyhedgehog
Copy link

Should cup ConEmu -y --force work in this case?
I've checked it with --noop and it doesn't. I think this is a bug,,,

@ferventcoder
Copy link
Member

If the process is in use, the package is going to fail. It should however not error on --noop. That would be a valid bug.

@dstj
Copy link

dstj commented Jun 17, 2015

After running cup all -y while on Skype today, I had the "issue" where Skype was closed mid-call to update. Having a cup all -y --except=skype would have been helpful today.

@aronovgj
Copy link

even better would be something like
cup all -y --except=running

to prevent upgrading all programs which are currently running

@christianrondeau
Copy link
Contributor Author

This would be an entirely new and separate feature however (in this specific feature, we simply have to skip the specified ones, but in your suggestion, we'd have to know which executables are linked to which packages). Also, how do you define "running", if there's a background service, or a tray bar program?

Still not a bad idea, but I would post and discuss the idea on Google Groups (https://groups.google.com/forum/#!forum/chocolatey)

christianrondeau pushed a commit to christianrondeau/choco that referenced this issue Jun 27, 2015
christianrondeau pushed a commit to christianrondeau/choco that referenced this issue Jun 27, 2015
christianrondeau pushed a commit to christianrondeau/choco that referenced this issue Jun 27, 2015
christianrondeau pushed a commit to christianrondeau/choco that referenced this issue Jul 2, 2015
christianrondeau pushed a commit to christianrondeau/choco that referenced this issue Jul 2, 2015
christianrondeau added a commit to christianrondeau/choco that referenced this issue Jul 22, 2015
@ferventcoder ferventcoder added this to the 0.9.10 milestone Jan 6, 2016
@ferventcoder ferventcoder self-assigned this Jan 6, 2016
christianrondeau added a commit to christianrondeau/choco that referenced this issue Jan 27, 2016
christianrondeau added a commit to christianrondeau/choco that referenced this issue Jan 27, 2016
ferventcoder pushed a commit that referenced this issue Jan 28, 2016
Allow passing a list of packages to skip on upgrade. There may be
times when you want to process upgrades for everything except for a
few applications that you may be currently running, like ConEmu.

Not being able to ignore certain packages on upgrade all is problematic,
especially when choco upgrades an application while a user is in the middle
of using it. This could get quite annoying, especially with something like
ConEmu - if you are using it to run upgarde all it will stop processing
choco and continue its upgrade. There are other situations where having the
ability to ignore certain packages would be very beneficial.
ferventcoder added a commit that referenced this issue Jan 28, 2016
* stable:
  (GH-293) Upgrade all --except
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants