Manage applications on Windows with Chocolatey software management tools

The
You can download this article in PDF format to support us through the following link.

Download the guide as a PDF

turn off
The

The
The

Introduction

Windows has come a long way in providing special power for personal computers and servers. Going back to the era of MS DOS and the latest development of the latest functions, it is clear that a lot of work has been done and considerable progress has been made to make the operating system the operating system of today. As the most widely used operating system in personal computers, Windows users can benefit from tools such as Chocolatey to install and manage their software.

Rather than the traditional method of finding EXE or MSI application files on the website, but downloading and ending the installation by clicking “Next”, “Next”, “Next”, Chocolately makes it easy to achieve the same purpose through the command line Or PowerShell. We will see this later in the process of easily installing and uninstalling software packages.

This guide introduces Chocolately and its benefits to those who will use it.

First, Chocolatey is an open source project created by Rob Reynolds in 2011. Its simple goal is to provide a common package manager for Windows. This is an open source project that provides developers and administrators with a better way to manage Windows software.

By providing more versions of software to support and constantly update, the company’s goal is to help their customers become efficient and innovative software-driven organizations.

Claim

  • Windows 7+ / Windows Server 2003+
  • PowerShell v2 + (although not yet PowerShell Core) (due to TLS 1.2 requirements, the minimum version installed from the source website is v3)
  • .NET Framework 4+ (If you do not have .NET 4.0 installed, the installer will try to install it.)

In order for us to use Chocolatey, we will have to install it. We will use both Commandline and PowerShell to make it run on your computer. If you wish to continue, follow the steps below to install Chocolatey.

Step 1: Install Chocolatey

In this step, we will use two options to install Chocolatey.

Option 1: Install Chocolatey from the command line

Click the “Windows” keyboard button and search for “command”. That will most likely start the application. Right-click it and select “Run as administrator”. On Windows 10, this option appears after searching for the “command” application. Just click it. As shown below:

After the application starts, copy the following command and press Enter.

@"%SystemRoot%System32WindowsPowerShellv1.0powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"

Manage applications on Windows with Chocolatey software management tools

Option 2: Install via PowerShell

Click the “Windows” keyboard button and search for “powershell”. That will most likely start the application. Right-click it and select “Run as administrator”. On Windows 10, this option appears after searching for the “Powershell” application, just like in option 1. Just click it. As shown below:

Manage applications on Windows with Chocolatey software management tools

After the application starts, copy the following command and press Enter.

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

Manage applications on Windows with Chocolatey software management tools

After the command is completed, you only need to run the following command to check the installed version.

choco version

Manage applications on Windows with Chocolatey software management tools

Step 2: Use Chocolatey

Now that we have entered the part we have been waiting for, let us jump into the topic.

Once the command is executed, Chocolatey can be installed perfectly. We are ready to install the package very efficiently.

Use Chocolatey to check / search apps

Suppose you want to use Chocolatey to install VLC Media Player. The first thing is to check whether the application exists. If you have not run the command line or Powershell, please follow the method in step 1 to start it. Then continue to check the application by running “choco list” as follows:

choco search visualstudiocode

Sample screenshots and results are as follows:

Manage applications on Windows with Chocolatey software management tools

Install applications with Chocolatey

Since we are confident that the application is available, let us proceed with the installation. you do:

choco install vlc -y

Screen snapshot example, the expected effect is shown below.

Manage applications on Windows with Chocolatey software management tools

You can also install multiple installations at once.

choco install vlc visualstudiocode -y

Uninstall the package

If you wish to remove the software package from your computer, Chocolatey comes with intuitive commands to accomplish this task for you. We know that you have guessed that you are severe. Just do choco uninstall. Let’s uninstall nodejs I installed on the computer.

choco uninstall nodejs

Manage applications on Windows with Chocolatey software management tools

Upgrade kit

Similar to other commands, upgrading the application is a simple task of Chocolatey. You only need to run choco upgrade. For example, let’s upgrade vlc

choco upgrade vlc

Manage applications on Windows with Chocolatey software management tools

in conclusion

You might think that in addition to the basics we introduce, Chocolatey has more choices. You can integrate it with automation tools (such as Puppet) and use it to achieve more functions. The Enterprise Edition also has many features for organizations to use. To learn more about Chocolatey, the best time to invest is at Chocolatey documentation.

Also read:

Install the latest Node.js and NPM on Ubuntu / Debian

The top 20 Windows PowerShell keyboard shortcuts for geeks

How to install PowerShell Core on Ubuntu 18.04 LTS

How to install PowerShell on RHEL / CentOS 8/7

The
You can download this article in PDF format to support us through the following link.

Download the guide as a PDF

turn off
The

The
The

Sidebar