Post

What is 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.

Chocolatey branding

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
clist googlechrome

To install a package:

1
cinst googlechrome

To install multiple packages:

1
cinst googlechrome 7zip mpcbe

To ignore dependencies during install

1
cinst paint.net -i

To uninstall a package:

1
cuninst googlechrome

To update all installed packages:

1
cup all

upgrade-example

To list all installed packages:

1
clist -l

list-example

Research

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

Comments powered by Disqus.