Skip to content

Instantly share code, notes, and snippets.

@SansGuidon
Last active July 12, 2017 13:29
Show Gist options
  • Save SansGuidon/691349cc96839c8ad87a6230730cbbdb to your computer and use it in GitHub Desktop.
Save SansGuidon/691349cc96839c8ad87a6230730cbbdb to your computer and use it in GitHub Desktop.

Execute in powershell

add chocolatey provider & install firefox

Set-ExecutionPolicy Unrestricted -Force
Install-PackageProvider -Name NuGet -Force
Install-PackageProvider ChocolateyGet -verbose -Force
Import-PackageProvider ChocolateyGet

Get-PackageSource | select *
Get-PackageProvider -ListAvailable
Find-package -Name Firefox | Install-Package -Verbose -Force

other options

One-liner to find & Install specific package version

Find-Package -RequiredVersion 0.70 -Name putty | Install-Package -Verbose

Add NuGet package source

Register-PackageSource -Name NuGet

Unregister a package source

Unregister-PackageSource Chocolatey