Chocolatey
Installing Chocolatey
Install with cmd.exe
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"Install with PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))Source: https://chocolatey.org/docs/installation
Install / Upgrade Packages
Note: Remember to run as administrator
To install:
choco install [package name]cinst [package name]List outdated packages:
choco outdatedUpgrade all outdated packages that aren't pinned:
choco upgrade allcup allOptions:
Install/upgrade in a specific directory:
--params="'/installLocation:""C:\tools""'"
Install source: https://chocolatey.org/docs/commandsinstall Upgrade source: https://chocolatey.org/docs/commandsupgrade
Pin
Usage
Examples
Source: https://chocolatey.org/docs/commandspin
List
Usage
Options
Only local:
-l,--lo,--localonly,--local-onlyExact name:
-e,--exact
Last updated
Was this helpful?