How to Install Chocolatey on Windows

This blog post is here to help you for installing Chocolatey on Windows using command (PowerShell).

Chocolatey allows you to manage software packages on your system with simple ‘choco‘ commands. It also comes with the optional Chocolatey GUI app which helps manage local software versions making it easy to keep up to date.

Topics Covered:
Installing Chocolatey using PowerShell
Installing & Demoing Chocolatey GUI


Install Chocolatey using PowerShell

To install choco using command, first you will need to open PowerShell as Administrator and run the following command:

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 Choco via Command

Once this has completed, check the version of choco to verify the installation, or go ahead and install a package:

# check choco version
choco -v

# install git using choco
choco install git
Check Choco Version

Installing & Demoing Chocolatey GUI

There’s about 10k packages maintained by choco. Some of the most popular packages include Chrome, Firefox, Java, Flash, Notepad++, 7zip, Git & Python. Installing a package is done using a standard command: ‘choco install <packagename>‘.

Now lets run the following to install the Choco GUI:

choco install chocolateygui
Installing Chocolatey GUI

Now open the Chocolatey GUI application. There will be a shortcut for this in your Start Menu too.

Launch Chocolatey GUI via Command

You can uninstall/reinstall packages from the GUI.

Choco GUI


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts
Categories
Tags

Always On Availability Groups (AAG) (4) AWS (4) AWS Redshift (6) Database Admin (72) Database Backups & Recovery (14) Database Mirroring (2) Error Messages (5) Failover Cluster Instances (FCI) (1) Git Commands (6) Importing & Exporting Data (2) Linked Servers (3) Linux Administration (2) Logging & Monitoring (1) Microsoft Patching (2) MySQL (4) Postgres (6) PowerShell Scripts (2) SQL Certificates & Encryption (3) SQL Server Agent (5) SQL Server CDC (2) SQL Server Data Types (2) SQL Server Management Studio (SSMS) (17) SQL Server Networking (3) SQL Server on Linux (1) SQL Server Patching (2) SQL Server Performance Tuning (6) SQL Server Processes (SPIDs) (7) SQL Server Replication (2) SQL Server Scripts (13) SQL Server Security (4) SQL Server Storage (10) Windows Admin (20) Windows Authentication (2) Windows Automation (1) Windows Events (2) Windows Firewall (4) Windows Subsystem for Linux (WSL) (18)