How to list Chocolatey packages already installed and newer version available from the command line
I have the following packages installed with Chocolatey.
choco list --localonly
> choco list --localonly
Chocolatey v0.9.9.2
adobereader 11.0.10
ccleaner 5.03.5128
chocolatey 0.9.9.2
ConEmu 14.9.23.0
gimp 2.8.14.1
git 1.9.5.20150114One week later the GIMP package updated to 2.9 and the Git package is updated to 1.9.6 on the chocolatey.org website, but other packages are not updated.
Two weeks later I need to run a command in cmd to show the following result:
> some command
git current local version (1.9.5), latest version (1.9.6) is available for upgrade
gimp current local version (2.8), latest version (2.9) is available for upgradeWhat is the good way to compose such command? (Or if there is a command option built into Chocolatey itself, what it would be?)
24 Answers
Note: You likely need to do the following commands in an administrative cmd/powershell prompt.
If you have choco 0.9.9.6+, you can use the outdated command.
choco outdatedIf you have 0.9.9+ installed:
choco upgrade all --noopIf you have version 0.9.8.33 or below installed:
choco version allFollowing that, if you actually want to upgrade - you can follow with:
cup all -yNote: -y will only work with 0.9.8.33+.
Just run the case, and choco said I should use this
choco list -loThat did the trick for me, so here 2c from me.
Addition from @feventcoder
choco version all will result you a warning of
DEPRECATION NOTICE -
choco versioncommand is deprecated and will be removed in version 1.0.0. Please usechoco upgrade <pgkname> --noopinstead.
So it mean you should learn that it might not support the version command anymore.
Sure that you need to upgrade your chocolatey version to 0.9.9+ or latest.
By the command choco upgrade chocolatey
And then call cup all -y to install all upgrade to your system.
Use "cver"
The quickest way if you want to find only the local packages installed is to issue the following command to a DOS prompt:
cver all -localonlyOr even easier to remember and type:
cver all -loThis avoids unnecessary querying.
4More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"