Post

What is Chocolatey?

Want to save time? Do yourself a favor and install Chocolatey!

Chocolatey is command line package manager for Windows just like Google Play Store in your phone but it does not come with graphical user interface. However, there’s optional user interface available for those who needed.

Why Chocolatey is useful.

Having a package manager, makes installs of my most used software, that much easier. It is a great way to keep track of the software you have and which version of that software you are on. So installing Chocolatey is going to be what I do when set up windows for the first time.

Installing Chocolatey from Powershell

1. Run Powershell as Administrator.
2. Copy & paste the following command into Powershell:

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’))

3. Wait for the command to complete.
4. You don’t see any errors, you can start using chocolatey.

Using Chocolatey

Before you start using chocolatey, I usualy start by disabling confirmation feature by running this command:

1
choco feature enable -n allowGlobalConfirmation

To find a package in command line use:

1
choco search googlechrome

To install a package:

1
choco install googlechrome

To install multiple packages:

1
choco install googlechrome 7zip mpcbe

Pin a package to suppress upgrades:

1
choco pin add --name paint.net

To unpin a package:

1
choco pin remove --name paint.net

To uninstall a package:

1
choco uninstall googlechrome

To update all installed packages:

1
choco upgrade all

upgrade-example

To list all installed packages:

1
choco list

list-example

Research

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.