Tired of installing 3rd party software? So far, 7zip, winrar, Chrome, Adobe Reader, Java etc … had to be downloaded manually. This is over now. Package Management in PowerShell is here! Online repository is the keyword. Install multiple software in silent mode with PowerShell. Here we go …
First, we check if PowerShell allows to run scripts. The execution policy should be configured to unrestricted.
Installing the Packageprovider Chocolatey
Get-PackageProvider checks which package providers are available.
No Chocolatey. Let´s continue with Find-Package. Press Y to install the NuGet Provider.
Now we can move on. We install the Package Provider Chocolatey. Press Y to install it.
Get-PackageProvider -Name chocolatey
The NuGet and Chocolatey provider should now appear in the list of Package Providers.
Package Management in Action
Let´s search for 7zip.
Find-Package -Name *7zip*
Next we use Install-Package to install 7zip.
Install-Package -Name 7zip
Or install packages simultaneously.
Install-Package -Name 7zip, WinRAR, Opera
Find more Software
You can search for more Software with Find-Package.
Find-Package -ProviderName chocolatey
The amount of software is amazing.
Can we trust chocolatey? I am not sure. For private use its ok. But for professional use i recommend to create your own Package Provider.