Requirements
- Windows 7+ / Windows Server 2003+
- PowerShell v2+
- .NET Framework 4+
Steps to Install Chocolatey
- Open Powershell as administrator.
- Execute below 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'))
- Once completed, You can verify installation using the
choco
command.
Now we are ready to install some software packages using the choco
command.
Installing Software Packages
- Go to Chocolatey Packages to find the software packages.
- Search your required software package.
- Find the
choco install <PKG NAME>
command specific to your software package. - Here, I searched for 7zip windows software. Command to install 7zip is
choco install 7zip
. - Execute command in the command prompt or power shell.
- Once execution completed, you can see the software installed in your machine.
Installing Multiple Software Packages
- Below is the format for installing many software in a single command.
choco install <PKG_NAME_1> <PKG_NAME_2> <PKG_NAME_3> ...
- Example, here I installed notepad++, cpu-z, 7zip in a single command.
choco install 7zip notepadplusplus cpu-z
- Once execution completed, you can see all softwares are installed.