Chocolatey is built on top of the nuget command line and nuget infrastructure.
Installing Chocolatey
In
PowerShell, with Adminstrator privileges, chocolatey can be installed like so:
$ua = new-object System.Net.WebClient
$installScript = $ua.DownloadString('https://chocolatey.org/install.ps1')
invoke-expression $installScript
TODO: Modified PowerShell profile
The installation also seems to add the followig snippet to the PowerShell profile whose filesystem path is stored in
$profile
:
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
Deprecation of shims
The following shims («shortcuts») are deprecated with version 1.0.0 and will be removed with version 2.0.0: chocolatey
, cinst
, clist
, cpush
, cuninst
and cup
.