Share your love
Install Chocolatey or Choco on Windows: Free Package Manager
This guide intends to teach you to Install Chocolatey or Choco on Windows. Also, you can use this instruction to Install Chocolatey on Windows Server. Follow the steps below on the Orcacore website to learn more about Chocolatey and install it on your Windows OS.
Table of Contents
Introduction To Windows Chocolatey
Chocolatey or Choco is a free open-source package manager for Windows. It can help you install, manage, and upgrade software on your desktops or servers.
It can help make life easier than finding the MSI or EXE file needed to install software and then walking through those installation wizards.
At its core, Chocolatey is an open-source tool, that anyone can contribute to and help evolve. It is also free at the point of use, but there are paid versions for those who may need some additional features or are using the product in their business environment.
Steps To Install Chocolatey or Choco on Windows
To complete this guide on Windows Chocolatey, you must log in to your Windows Client or Windows Server and follow the steps below.
Note: You need to have Windows 7 or later / Windows Server 2003 or later.
You can install Choco by using:
- PowerShell
- CMD
Method 1. Install Windows Chocolatey with PowerShell
First, you need to run your PowerShell as an administrator. To do this, you can check this guide on Run PowerShell as Administrator on Windows.
Then, you must be sure that the local Get-ExecutionPolicy is not set to restricted. To do this, run the following command from your PowerShell:
Set-ExecutionPolicy AllSigned
If it returns Restricted, you need to run the command below:
Set-ExecutionPolicy Bypass -Scope Process
At this point, you can use the following command to install Chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
When your installation is completed, you will get the following output:
Restart your PowerShell again, and verify your Choco version on Windows with the command below:
choco
Method 2. Install Windows Chocolatey with CMD
Another way to install Choco is to use the Windows CMD. Open your CMD as an administrator and run the command below:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
When your installation is completed, restart your CMD again, and verify your Choco version on Windows with the command below:
choco
How To Use Chocolatey on Windows?
Choco commands can be used in both the Windows cmd shell and in PowerShell.
To install a program with Choco, you can use the command below:
choco install package-name
For example:
choco install git
To update a program, you can use the following command:
choco upgrade package-name
For example:
choco upgrade git
Also, you can update all programs with the following command:
choco upgrade all
Note: The cup command is an alternative to using the choco upgrade command.
To find a program for downloading and installation, you can use the following command:
choco search package-name
You can easily use the command below to see which packages are installed with Choco:
choco list --local-only
Update Chocolatey or Choco on Windows
you can update the Choco program itself by using the following command:
choco upgrade chocolatey
It is important to do this periodically because in previous versions, errors may be detected, and they need to be fixed so that there are no vulnerabilities.
Install Chocolatey or Choco GUI on Windows
Those who are comfortable with the graphical interface can install Choco GUI by using the command below:
choco install chocolateygui
During the installation, you will be asked some questions, and answer them by pressing A.
When your installation is completed, you can search for Chocolatey from your search bar. You should see the Choco GUI:
For more information, you can visit the Chocolatey Docs page.
Conclusion
At this point, you have learned to Install Chocolatey or Choco on Windows by using PowerShell or CMS. Also, you have learned to use choco to install packages on your Windows OS.
Hope you enjoy it. Also, you may like to read the following articles:
Add Sticky Notes to the Windows Desktop
Manage Windows Network and Firewall Settings
Set up 7-Zip for Windows Server 2022
Which is better, Chocolatey or scoop?
Chocolatey require administrator privileges to install an app somewhere like Program Files, whereas Scoop takes a more restricted approach to permissions for the apps you install.