Install Chocolatey on Windows

Install chocolatey and use choco cli in windows server

What is chocolatey ?

The Package Manager for Windows and Choco simplifies this through a simple, repeatable, and automated approach, by using a universal packaging format for managing all Windows software.

Why is chocolatey ?

Deploying software without package management on Windows can be complicated and time-consuming that why we have Chocolatey or choco.

There are two ways Install chocolatey on your windows system

  • you have to open command line or power-shell via administrator
  1. CMD
  2. Powershell

Way-1 : Using CMD

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Way-2 : Using Powershell v3+


Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
Upgrade choco version (optional)
choco upgrade chocolatey

Extra : Install essentials software and devops tools using choco

choco --help
choco <options> <package_name>
Install Essential tools using choco :
choco install googlechrome
choco install git
choco install vscode
Install Devops Tools
choco install terraform Jenkins docker-machine docker-compose

Leave a Reply

Your email address will not be published.