Below you can find two scripts which will update all Chocolatey packages installed on your system. The main script is UpdateChoclatey.ps1, but for convenience I also add UpdateChocolatey.bat which will call the former Powershell script (place it in the same folder as the .ps1 file).
The script asks for elevation if needed.
Example call:
C:\> UpdateChocolatey.bat
========= Updating chocolatey... =========
Updating 7zip...
Chocolatey v0.9.9.6
Upgrading the following packages:
7zip
By upgrading you accept licenses for the packages.
7zip v15.14 is the latest version available based on your source(s).
Chocolatey upgraded 0/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Updating 7zip.install...
Chocolatey v0.9.9.6
Upgrading the following packages:
7zip.install
By upgrading you accept licenses for the packages.
7zip.install v15.14 is the latest version available based on your source(s).
...
Press any key to continue...
Haha, no worries. This script used to be much longer before I discovered
upgrade all -y
, so I understand the confusion 🙂