Search notes:

Chocolatey

Chocolatey is a package manager for Windows (think apt-get)
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
After installing Chocolatey, its executables are found in the directory %ALLUSERSPROFILE%\chocolatey\bin. This path is added to the PATH environment variable by the downloaded install.ps1 script.

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"
}
The value of the environment variable ChocolateyInstall seems to point to the directory C:\ProgramData\chocolatey.

Update the entire system

choco upgrade all -y

Editions

Chocolatey comes in 4 editions:

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.

Misc / TODO

Environment variables

Default value
ChocolateyInstall C:\ProgramData\chocolatey
ChocolateyLastPathUpdate
ChocolateyToolsLocation C:\tools

Default package source repository

The default package source repository (aka «Community Package Repository») is located at https://chocolatey.org/packages.
The documentation indicates that the community package repository is located at https://community.chocolatey.org/api/v2/, however, this link returns an XML document that is meaningles to me.
Compare with the output of choco source list.

Auto completion

PS C:\> import-module %ProgramData%\chocolatey[$env:ChocolateyInstall\\helpers\chocolateyProfile.psm1
choco … <tab>

See also

C:\ProgramData\chocolatey\logs
Chocolatey features

Links

Chocolatey.
Hong/topbug.net: A Simple Tutorial: Create and Publish Chocolatey Packages

Index