Sunday 29 March 2015

How to update Chocolatey

I’ve recently started using Chocolatey - a package manager for Windows – to install tools and applications. If you’re not familiar with Chocolatey it’s described thus:

“Chocolatey is a package manager for Windows (like apt-get or yum but for Windows). It was designed to be a decentralized framework for quickly installing applications and tools that you need. It is built on the NuGet infrastructure currently using PowerShell as its focus for delivering packages from the distros to your door, err computer.” [1]

Installing Chocolatey is easy and is explained on their homepage. But how do you upgrade Chocolatey to the latest version after you’ve installed?

Firstly, I opened a command prompt as administrator and ran Powershell - actually I used ConEmu which has a convenient tab for just this purpose. I then ran ‘chocolatey version’ to see what’s what.


Looks like there’s a new version. Let’s update. Doing so is just like updating anything with Chocolatey. Run the ‘chocolatey update’ passing in the package name; ‘chocolatey’ in this case.


I’ve truncated the console output but suffice is to say Chocolatey has been updated.


[1] About Chocolatey