PS C:\Users\user> choco upgrade chocolatey
Chocolatey v1.3.1
2 validations performed. 1 success(es), 1 warning(s), and 0 error(s).
Validation Warnings:
- A pending system reboot request has been detected, however, this is
being ignored due to the current Chocolatey configuration. If you
want to halt when this occurs, then either set the global feature
using:
choco feature enable -name=exitOnRebootDetected
or pass the option –exit-when-reboot-detected.
Upgrading the following packages:
chocolatey
By upgrading, you accept licenses for the packages.
You have chocolatey v1.3.1 installed. Version 2.2.2 is available based on your source(s).
Progress: Downloading chocolatey 2.2.2… 100%
chocolatey v2.2.2
chocolatey package files upgrade completed. Performing other installation steps.
The package chocolatey wants to run ‘chocolateyInstall.ps1’.
Note: If you don’t run this script, the installation will fail.
Note: To confirm automatically next time, use ‘-y’ or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll – yes to all/[N]o/[P]rint): y
Creating ChocolateyInstall as an environment variable (targeting ‘Machine’)
Setting ChocolateyInstall to ‘C:\ProgramData\chocolatey’
WARNING: It’s very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to ‘C:\ProgramData\chocolatey\lib’
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to ‘C:\ProgramData\chocolatey\bin’
and points to an executable in ‘C:\ProgramData\chocolatey\lib\yourPackageName’.
Creating Chocolatey folders if they do not already exist.
Removing shim C:\ProgramData\chocolatey\redirects\chocolatey.exe
Removing shim C:\ProgramData\chocolatey\redirects\cinst.exe
Removing shim C:\ProgramData\chocolatey\redirects\clist.exe
Removing shim C:\ProgramData\chocolatey\redirects\cpush.exe
Removing shim C:\ProgramData\chocolatey\redirects\cuninst.exe
Removing shim C:\ProgramData\chocolatey\redirects\cup.exe
Adding Chocolatey to the profile. This will provide tab completion, refreshenv, etc.
WARNING: Chocolatey profile installed. Reload your profile – type . $profile
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Removing shim C:\ProgramData\chocolatey\bin\chocolatey.exe
Removing shim C:\ProgramData\chocolatey\bin\cinst.exe
Removing shim C:\ProgramData\chocolatey\bin\clist.exe
Removing shim C:\ProgramData\chocolatey\bin\cpush.exe
Removing shim C:\ProgramData\chocolatey\bin\cuninst.exe
Removing shim C:\ProgramData\chocolatey\bin\cup.exe
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv).
The upgrade of chocolatey was successful.
Software install location not explicitly set, it could be in package or
default install location of installer.
Chocolatey upgraded 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS C:\Users\user>
PS C:\Users\user> choco
Chocolatey v2.2.2
Please run ‘choco -?’ or ‘choco -?’ for help menu.








