How to install apps in Windows 10 with the command line

Windows Articles

How to install Slack on Ubuntu 20.04?

Hi, folks. In this post you will learn how to install Slack on Ubuntu 20.04. Slack is an application...

How to create a registry backup in Windows Server 2019/2016

Hello! The registry is one of the essential elements within Windows Server. Additionally, the system has an editor to be able to...

How to update apps on Android

Hi folks! In this post, we will show you how to update your Android apps. Updating the apps on your device is...

How to install Apache Ant on Ubuntu 20.04?

Hello, friends. Apache Ant is a very important tool for the development of applications in Java. So in this post, we will...

How to use the ss command

For Linux users, there will come a time when you need to know about the network. Several tools help in this process,...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

Hi, how are you? For all traditional Windows users, installing apps has no secrets. In fact, you just have to download the installer, run it and follow the instructions. And by going to the app stores, this process is even easier. Just download it if it’s free or buy it if it’s paid and the process will be done automatically. However, it is not the same to install a single application than to install several of them. Especially when you buy a new PC or format an old one. Similarly, when working with maintenance of several computers. Anyway, tools like Chocolatey are very helpful. So in this post we’ll see how to install apps in Windows 10 from the command line.

Chocolatey. A package manager for Windows.

This is a concept traditionally associated with Linux operating systems and away from the Windows ecosystem. In simple terms, it consists in that when installing a program, not only the main package is downloaded, but also the packages on which the program depends. It seems like a complex process, but in reality what it does is simplify the process. Well, Chocolatey what it does is bring this philosophy to Windows. Consequently, it is possible to install apps with a command line command. On the other hand, by installing apps in the traditional way, you run the risk of downloading PUPs or even malware.

Chocolatey makes sure to download the programs from their verified and reliable source. Specifically, there are more than 7,500 packages available to be installed. In the list, there are such well-known options as Google Chrome, Skype, Adobe Acrobat Reader. But there are also free and open source software available, such as 7-Zip, VLC or Mozilla Firefox. First, let’s install the package manager. This requires running a PowerShell with administrative privileges. With this intention, press the Win+X combination and execute the console:

Run a PowerShell with administrative privileges
Run a PowerShell with administrative privileges

Once the console is open, please execute the following command:

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'))
Chocolatey installation successful.
Chocolatey installation successful.

It can be seen that the installation route is in C:\ProgramData\chocolatey In the same way, the subdirectory lib is used for the packages.

Install and uninstall apps with Chocolatey.

Once downloaded and installed, you are ready for the first steps with Chocolatey. First, to access help, please run this command from the PowerShell:

 choco /?  
Chocolatey Help
Chocolatey Help

To see if a package is available, use the search command::

search
Winrar package available
Winrar package available

To install it, just run this command:

choco install winrar

Please note that you always have to confirm the installation.

Installing Winrar with Chocolatey
Installing Winrar with Chocolatey

To uninstall the program just use the command:

uninstall
Uninstall the app
Uninstall the app

Other useful commands from Chocolatey.

Once you have several programs installed using Chocolatey, it is possible to update them all using the update command:

choco update

To install several programs at once, use the install command followed by the names of all the packages. Example:

choco Install firefox 7zip vlc skype 

In this example four popular apps will be installed. These are the Firefox browser, the 7zip file uncompressor, the VLC media player and the Skype video calling and messaging app. On the other hand, to install the Chocolatey graphic manager, run this command:

 choco install chocolateygui 

Besides, to see a list of all available packages, use this command:

choco list

Conclusion

Ultimately, we’ve seen how to install apps on Windows 10 using the command line. Consequently, you have another interesting option to install programs quickly and safely. Likewise, you can see the programs available and their respective command from the Chocolatey website. All right, that’s it for now. Before saying goodbye I invite you to see our post about the next Windows 10 update. See you soon!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Slack on Ubuntu 20.04?

Hi, folks. In this post you will learn how to install Slack on Ubuntu 20.04. Slack is an application...

How to create a registry backup in Windows Server 2019/2016

Hello! The registry is one of the essential elements within Windows Server. Additionally, the system has an editor to be able to...

How to update apps on Android

Hi folks! In this post, we will show you how to update your Android apps. Updating the apps on your device is...

How to install Apache Ant on Ubuntu 20.04?

Hello, friends. Apache Ant is a very important tool for the development of applications in Java. So in this post, we will...

How to use the ss command

For Linux users, there will come a time when you need to know about the network. Several tools help in this process,...
x