Chocolatey rocks when it comes to updating a bunch of installed software from the command line. If you’re not doing that often however it can be hard to remember exactly what commands you can use to do that quickly. So here’s a little run-down on the most helpful commands when you are updating your system.
First you might want to check what’s installed on your machine.
You can get the list of the local package Chocolatey installed like this:
chocolatey list -localonly
or in short:
To check if any package have updates available, we can run the update all statement, but not quite for real yet. By adding the -whatif switch, Chocolatey only pretends to update:
chocolatey upgrade all -whatif
cup all -whatif
Ready to update all packages at once? Nice. So let’s disable those confirmation prompts while we’re at it too by adding the -y switch.
chocolatey upgrade all -y
cup all -y
Edited 2017-02-26 : replaced deprecated update command with the new Chocolatey 1.0 upgrade command.