Managing Packages Using Chocolatey

 

Created on: 11/9/19
Last update: 11/9/19

It is painful to manage packages on Windows. So I found Chocolatey, which is a command line-based software manager just like Homebrew but for Windows. It is probably the best solution for Windows users who prefer to manage applications in Homebrew way.

Installation

The Chocolatey can be installed using administrative shell with the following command:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

There is also a GUI version of Chocolatey, which can be installed with:

choco install ChocolateyGUI

Common commands

List all installed packages:

choco list -li

Search package:

choco search <filter>

Install packages:

choco install <pkg|packages.config> [<pkg2> <pkgN>] [<options/switches>]

Upgrade packages:

choco upgrade <pkg|all> [<pkg2> <pkgN>] [<options/switches>]

Uninstall packages:

choco uninstall <pkg|all> [pkg2 pkgN] [options/switches]

References

Chocolatey - Software Management for Windows

Installing Chocolatey

Chocolatey GUI