In this article, I will tell you about a very practical little program to make it easier for you to install programs on workstations and servers.
Chocolatey is to Windows what apt-get is to Debian.
Chocolatey allows you to install, update and remove software in PowerShell (ps).
To install Chocolatey you must launch the command window ps in administrator and execute the following line:
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'))
After confirming the installation of the installed commands, close the PowerShell prompt and reopen it for the commands to be available.
Example: install Notepad ++:
choco install notepadplusplus.install -y
-y : this option allows the automatic acceptance of the conditions of use of the software.
It is also possible to install several software in a single line.
The following command will install 7zip and Foxit Reader:
choco install 7zip.install foxitreader -y
To update your software installed by Chocolatey:
choco upgrade all -y
Here you will find the complete list of available software and the documentation here.