How to upgrade Chocolatey on Windows

Last updated on 11th February 2021

Chocolatey is an open source package manager for Windows. It simplifies Windows software lifecycle management, ie.,from installation of a software to its upgrade and uninstallation.

Several software vendors now recommend chocolatey as their preferred installation and upgrade solution. In my previous article on Hugo static website generator, I explained how to install chocolatey. This article covers how to upgrade chocolatey to its latest version.

You can find the version of the chocolatey that is installed by running the choco command.

c:\> choco
Chocolatey v0.10.8

To upgrade chocolatey, open command prompt as administrator and run choco upgrade chocolatey.

c:\> choco upgrade chocolatey
Chocolatey v0.10.8
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.

You have chocolatey v0.10.8 installed. Version 0.10.15 is available based on your source(s).
Progress: Downloading chocolatey 0.10.15... 100%

chocolatey v0.10.15 [Approved]
chocolatey package files upgrade completed. Performing other installation steps.
The package chocolatey wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): y

Creating ChocolateyInstall as an environment variable (targeting 'Machine')
  .....................................................
........................................................

Chocolatey upgraded 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
 

To verify, run choco command again.

C:\>choco
Chocolatey v0.10.15
Please run 'choco -?' or 'choco  -?' for help menu.

You can see that the version is upgraded.

Post a comment

Comments

Nothing yet..be the first to share wisdom.