DEV Community

Rodrigo Juarez for Coding Coach

Posted on • Updated on

Chocolatey, a better way to install software on windows

This post is aimed primarily to software developers using windows. You should have basic knowledge about your operation system.

When you need to install a new tool, you will have the issue to try to find the location to download it, get the latest version for your SO, and so on.

Trying to improve the user experience related to managing your software installation, Chocolatey comes to the rescue.

Image

This piece of software will allow you to use the windows command line to install, update or uninstall your favorite tools and programs.

You can see a curated list of available packages here.

Install instructions are available in the following link.

In a nutshell, open a PowerShell CLI in administrator mode and execute the following command:

iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
Enter fullscreen mode Exit fullscreen mode

If you got an error message about running scripts disabled in your system, just run this in your current PowerShell window (more info):

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Enter fullscreen mode Exit fullscreen mode

After this, open your windows command prompt as Administrator and use the choco -? command to see more information.
For example, I can install ConsoleZ with:

choco install consolez
Enter fullscreen mode Exit fullscreen mode

Or update it with:

choco upgrade consolez
Enter fullscreen mode Exit fullscreen mode

Usually, the same installer will add the program to the path, so, in this case, use the console command to open your new installed software.

Top comments (1)

Collapse
 
yogesnsamy profile image
Yogeswari Narayasamy • Edited

Thank you, now I understand what chocolatey is. I had to use it while installing docker and the instructions were overwhelming. I did eventually manage to get docker engine running but it was without actually comprehending what I did.