How to Install Chocolatey Package Manager on Windows 10/8/7

0


[ad_1]

In this article, we will show how to install programs and packages from Command Prompt / Power Shell on Windows operating system using Chocolatey – The Package Manager for Windows

Linux distributions come with a Package Manager, which is a powerful tool that most power users can use to install, update, and remove packages, directly from the command line or terminal. While most users aren’t comfortable with the command line or Terminal interface on Linux distributions, it’s definitely a great tool, if you know how to use it. On the other hand, Windows users appreciate the graphical user interface for installing, updating, and uninstalling programs and packages, which is not unified for all the programs that you regularly use. Even though it is easy to manage programs in Windows in the friendly user interface, you should keep a constant tab to prevent installer from installing malware or unnecessary programs.

Whereas likes and dislikes for terminal and GUI are a relative aspect, the good side is that you can even install programs on your Windows computer using the command line, just like you do. on Linux based operating systems or Linux distributions. Since Windows does not natively support installing programs directly from the command prompt, you will need to use third-party software to enable this feature on Windows. Do not worry. It won’t cost you an arm and a leg, nor will it be too difficult.

So, without further ado, let’s start by getting started installing apps on Windows directly from Command Prompt or PowerShell, whichever works for you.

Minimum system requirements to install Chocolatey package manager

  • You should run Windows 7 Where Windows 2003 or any other later version of Windows with PowerShell v2 or any later version to use Chocolatey.
  • .NET Framework 4 or better should also be installed on your computer.

So that was all about the minimum system requirements to run Chocolatey on your Windows computer.

Ways to install Chocolatey Packages on Windows


Using the Command Prompt

Step 1: Open Command Prompt


Hurry ‘Win + R‘and type ‘cmd’. Now press the key combination ‘Ctrl + Shift + Enter‘to open the command prompt with administrator permissions.

Now type the following command and hit Enter key to run it.

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

Chocolate 2

Step 2: Download and install Chocolatey


Let the command prompt download and install Chocolatey for you. You will get the following screen and when the installation is complete you can return to the prompt to enter the following commands.

Chocolate 3

#Use Windows PowerShell to install Chocolatey

Step 1: Using PowerShell


Open Windows PowerShell with administrator rights by right-clicking on the Start menu and clicking ‘Windows PowerShell (administrator)‘.

Chocolate 4

Now type the following command to install Chocolatey using Windows PowerShell.

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

Chocolate 5

Wait for the download and installation process to complete, and once it’s done, you can return to the prompt to enter a command and do your work.

6 chocolate sides

The installation of Chocolatey using the command prompt or Windows PowerShell is now complete.

I recommend that you restart your computer before performing any real activity with Chocolatey.

Now open Command Prompt and you can find, install, update, and uninstall programs right from Command Prompt.

Some useful chocolate commands

Let’s take a look at some useful commands that may come in handy when using Chocolatey. The commands are not platform specific, and you can use the command both on the command prompt and on Windows PowerShell. But make sure you are running the commands with administrator privileges.

  • Acquire help: choco -?
  • Search for programs: choco research
  • Installation of programs: choco install
  • Updating programs: choco update
  • Uninstalling programs: choco uninstall
  • Chocolatey Update: choco chocolate update

There are hundreds of commands available for Choco, and you can even use additional arguments with all the commands, however, you won’t need to add any additional arguments if you are using it for personal use. It can also be difficult to remember the arguments, so it doesn’t matter. But if your friends call you a geek and you’re a savvy user, surely the extra arguments can come in handy every now and then. here are the additional commands to use Chocolatey.

How to use the Chocolatey command to download software packages

An example

Chocolatey is super easy to use. Just search for the program and install it effortlessly with just the command. So let me search for Vivaldi browser and install it on my system.

Type the following command to search for the keyword Vivaldi, in packages, to which Chocolatey has access.

choco search vivaldi

Chocolate 8 9

Now you go you have to install Vivaldi on your system using the ‘to install‘ ordered.

Type the following command tor install Vivaldi.

choco install vivaldi

Chocolate 10 11

It is not necessary to install the full name of the package. Just type in the name of the program or package and leave the rest to Chocolate.

The installation will start immediately, and during this time you will be asked if you want to run the script to download and install Vivaldi. Just type WE P respectively followed by the Enter key to authorize execution, prevent execution and print the script respectively.

It goes without saying, you must enter ‘Yes‘for the installation of Vivaldi. You will get the following screen, as long as the download and installation process continues.

Chocolate 12 13

When the installation is complete, you get the prompt.

Chocolate 14

Vivaldi will now be automatically available on your desktop.

Chocolate 15

Just open it to start using Vivaldi, just like you do with other programs on Windows.

How to upgrade Chocolatey

Just in Windows 10/8/7 Command Prompt or Power Shell, use the command below.

choco upgrade chocolatey

How to uninstall the packages installed by Chocolatey

To uninstall Vivaldi now, just type the following command and then hit the Enter key.

choco uninstall vivaldi

Chocolate 16

Now you will have to choose the version of Vivaldi, which you want to uninstall. I want to uninstall all versions of Vivaldi, so I’m going to choose 4 of them and hit the enter key.

Chocolate 17

You will be asked again if you want to run the script.t. Just type ‘Yes‘and press Enter to run the script and remove Vivaldi.

Chocolate 18

Vivaldi will not be uninstalled from your system. Depending on the program you are uninstalling, you may be asked for a GUI-based confirmation to uninstall the program. You can even use additional arguments to force uninstall programs, the layout of which is also available on Chocolatey.

Chocolatey is undoubtedly a powerful tool to manage programs and packages effortlessly on Windows. There are hundreds of programs that you can download and install using Chocolatey. Chocolatey is a kind of repository just like Linux, where you can download all your programs with one command. However, I will never compare the power of the Chocolatey repository with the apt repository for Linux, as both are for two different platforms, and availability will undoubtedly vary on both platforms.

With Chocolatey, you won’t even have to enter the full name of the package, which is cool too. I searched for lesser known random programs, most users haven’t heard of them and was amazed to see some results appear. I am sure the program database will continue to expand in the coming days. Chocolatey can be considered as a command line alternative for Ninite on Windows, which can help you install multiple selected programs at once.

Chocolatey is open source, although there are personal and professional editions, and you can see their price here. You will no longer have to worry about automatic updates slowing down your internet connection, your computer, or both, as you can update programs and packages anytime, right from the command prompt.

How cool! I know you will thank me later for that. Hope the information has been helpful to you. Do you have additional questions? Please feel free to comment on the same below.

[ad_2]

Share.

Comments are closed.