Choco: Allow blocking upgrades for specific programs.

Created on 23 Oct 2019  路  4Comments  路  Source: chocolatey/choco

My best example is Amazon Kindle. With version 1.23, you can remove DRM from your purchased books and use Calibre etc. While I can install that version, I often forget about it when upgrading all of my packages. I'm aware I can say NO when installing an update.

Any way to exclude a package from upgrading?

Invalid / Not Issue / No repro / Not Implementing

Most helpful comment

while choco pin is most likely the one you really want, you also have the option to use the --except argument when calling choco upgrade.

ie:

choco upgrade all --except=calibre

All 4 comments

I think you're looking for pin: https://github.com/chocolatey/choco/wiki/CommandsPin 馃檪

Pin a package to suppress upgrades.

This is especially helpful when running [[choco upgrade|Commandsupgrade]] for all packages, as it will automatically skip those packages. Another alternative is choco upgrade --except="pkg1,pk2".

Example from the article:

choco pin add -n=git --version 1.2.3

Oh, I totally missed that. Thanks!

while choco pin is most likely the one you really want, you also have the option to use the --except argument when calling choco upgrade.

ie:

choco upgrade all --except=calibre

Thanks folks!

Was this page helpful?
0 / 5 - 0 ratings