How to install and use Chocolatey, a tasty package manager for Windows 10

IMG 20190730 173711

How to install and use Chocolatey, a tasty package manager for Windows 10

To install Chocolatey:

  1. Follow the instructions on the Chocolatey website to install Chocolatey.
  2. Run the "choco installation program" on a console to install a program called "program".

Applies to all versions of Windows 10

Imagine this: you need to install new software on your Windows PC. Most likely, you go to a website, try not to click on the garbage on the page and then click on a graphical installer, probably using the default settings.

It's a routine you're probably familiar with. It has hardly changed during the life of Windows, as the software began to be distributed online. However, Unix systems have an alternative approach, with software installations managed by package managers that require minimal user input and are often controlled through the command line. Now there is a growing interest in bringing these benefits to Windows, through the use of third-party package managers.

Recently we took a look at Scoop, which is a simple and accessible package manager solution. That article also contains more discussion about the advantages of terminal package administrators over Windows graphical installers, so we recommend that you read it if it is still new in the concept. Today we will explore Chocolatey, which is an alternative Windows package manager with a slightly stronger focus on user-oriented desktop applications.

Chocolatey is controlled primarily from the command line. Don't worry if it's new to console applications: type the commands as shown in the documentation and you shouldn't have any problems. Chocolatey also has an optional graphical interface that we will explore later.

Installing Chocolatey

To install Chocolatey, open PowerShell from the Start menu. Then, copy and paste the following script line and press Enter:

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

  Screenshot of the use of the Chocolatey Package Manager

This will configure PowerShell to allow external scripts to run, before downloading and running the Chocolatey installation script. For more details on this process, you should consult the Chocolatey documentation. If you are concerned about what the script does, you must inspect it manually before executing the command.

Installing programs with Chocolatey

The main feature of Chocolatey is the ability to install Windows software with a single command. Instead of having to visit a website and manually click on an installer, you can start PowerShell and type something like the following:

  choco install vlc 

  Screenshot of the use of Chocolatey Package Manager [19659007] This will download and install VLC Media Player on your system, without requiring any action on your part. You will see the progress information displayed on your console as VLC is added to your system. Then you will find it in your Start menu as if you had run the installer yourself.

Some programs may ask you to run scripts during installation. Type "A" for "Yes for everyone" on the console and then press Enter to confirm this warning and complete the installation.

 Screenshot of the use of the Chocolatey Package Manager

Chocolatey supports thousands of different programs. You can see what is available by browsing the Chocolatey package repository. Some of the most popular options include Chrome, Adobe Reader, Firefox, WinRAR and Skype. The package repository shows the name to add to the "choco install" command to install each item.

Update of installed programs

Chocolatey simplifies the update of the programs you have installed. Run the following command to update all obsolete Chocolatey packages on your system:

  choco upgrade all 

You can also pass the name of an application to update a single program:

  choco ugprade vlc 

Chocolatey will verify If there are updates are necessary and automatically install the new version. If you want to see if updates are available, without installing them, run "obsolete choco" instead.

Additional Commands

There are some other Chocolatey commands that you will probably find useful.

Run "choco list -lo" will show a list of all the programs you have installed. You can run "choco search query" to search the "query" package repository and display all matching programs, so you don't even need a web browser to find new software.

 Screenshot of the use of the Chocolatey manager package

When it comes to removing a program, use the "choco uninstall" command, adding the name of the program. Chocolatey also does everything possible to track deleted applications in other ways: if you install a program with Chocolatey but then remove it from the Windows Settings application or Control Panel, it should also automatically disappear from Chocolatey.

Chocolately is very powerful and we have only scratched the surface of its features with this article. There are numerous configuration options for advanced users, as well as the option to run local proxies, caches and package repositories. Chocolately also has paid options for business and organizational use.

Chocolatey UI

Finally, it is worth noting that Chocolatey has an optional graphical interface that helps you interact with your packages and install new ones. As expected, the installation of the UI is done through Chocolatey!

 Screenshot of the use of the Chocolatey Package Manager

Run "choco install chocolateygui" to install the GUI. You can then start the GUI from its Start menu.

 Screenshot of the use of the Chocolatey Package Manager

This gives you a simple graphical interface to view your installed packages, check for updates and customize Chocolatey's settings. You can browse the Chocolatey catalog by clicking on "chocolatey" in the left sidebar. Here, you can search for new programs and install them with just one click, avoiding further use of PowerShell if console applications are not your thing.

More information: Windows 10

For More Updates Check out Blog, Windows Softwares Drivers, Antivirus, Ms Office, Graphic Design Don’t Forget to Look Our Facebook Page Get Into Pc like us & follow on Twitter- @getinpc

Please Note: This content is provided and hosted by a 3rd party server. Sometimes these servers may include advertisements. igetintopc.com does not host or upload this material and is not responsible for the content.