DEV Community

Cover image for Install Chocolatey on your Windows machine
Souleymane. Tiendrebeogo
Souleymane. Tiendrebeogo

Posted on

Install Chocolatey on your Windows machine

"Chocolatey is a machine-level, command-line package manager and installer for software on Microsoft Windows. It uses the NuGet packaging infrastructure and Windows PowerShell to simplify the process of downloading and installing software"

https://chocolatey.org/install

After that Head to your Window search bar, select your cmd and launch it as administrator and then run the command below

 Get-ExecutitionPolicy 
Enter fullscreen mode Exit fullscreen mode

If it return " Restricted" , then follow up with the second command bellow

Set-ExecytionPolicy AllSigned or  Set-ExecutionPolicy Bypass -Scope Process
Enter fullscreen mode Exit fullscreen mode

Now, are ready to install chocolatey by running the command bellow

 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Enter fullscreen mode Exit fullscreen mode

After that, run the command below to see chocolatey version

choco 
Enter fullscreen mode Exit fullscreen mode

you will be able to see chocolatey version

Image description

Top comments (0)