Package Manager for Windows => Chocolatey

16 Mar, 2022·
AlexIn Tech
AlexIn Tech
· 1 min read

Package Manager for Windows => Chocolatey

As you probably know, Windows introduced its own package manager, “winget”, built into Windows 11. But before that, or if you have different needs or preferences, you can use a third-party tool like the one I’ll present today: Chocolatey.

Why Chocolatey?

Chocolatey is a software management solution unlike anything you’ve seen on Windows. Chocolatey brings true package management concepts, allowing you to version things, manage dependencies and installation order, improve inventory management, and more cool features.

Installation

First, let’s check your PowerShell settings.

Open a PowerShell window as an administrator and run the following command:

Get-ExecutionPolicy

If the result is “Restricted,” run one of the following commands to allow PowerShell scripts to execute:

Set-ExecutionPolicy AllSigned

or

Set-ExecutionPolicy Bypass -Scope Process

Once these initial checks are completed, 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://community.chocolatey.org/install.ps1'))

Installing Packages

To install packages and start using Chocolatey, it’s simple: go to this link and search for the packages you’re interested in:

https://community.chocolatey.org/packages

Example: Install Adobe Reader

choco install adobereader

It’s that simple! Enjoy! 😁

PS: I wrote an article about the Windows package manager, which you can find here.

AlexIn Tech
Authors
SysOps Engineer | IT Teacher
Versatile IT Engineer with a dual specialization in System Engineering and Management, AlexIn Tech teaches IT to CFC apprentice IT specialists at ETML, the Technical School of Lausanne 🇨🇭. Passionate about IT, innovation, and knowledge sharing, he shares his discoveries and learnings here to inspire new generations.