Created
July 3, 2013 12:21
-
-
Save tk3/5917458 to your computer and use it in GitHub Desktop.
Install chocolatey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\foo>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\choc | |
olatey\bin | |
Downloading http://chocolatey.org/api/v2/package/chocolatey/ to C:\Users\foo\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip | |
Extracting C:\Users\foo\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to ... | |
Installing chocolatey on this machine | |
Creating ChocolateyInstall as a User Environment variable and setting it to 'C:\Chocolatey' | |
We are setting up the Chocolatey repository for NuGet packages that should be at the machine level. Think executables/application packages, not library packages. | |
That is what Chocolatey NuGet goodness is for. | |
The repository is set up at 'C:\Chocolatey'. | |
The packages themselves go to 'C:\Chocolatey\lib' (i.e. C:\Chocolatey\lib\yourPackageName). | |
A batch file for the command line goes to 'C:\Chocolatey\bin' and points to an executable in 'C:\Chocolatey\lib\yourPackageName'. | |
Creating Chocolatey NuGet folders if they do not already exist. | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
d---- 2013/07/03 21:18 bin | |
d---- 2013/07/03 21:18 lib | |
d---- 2013/07/03 21:18 chocolateyinstall | |
Copying the contents of 'C:\Users\foo\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall' to 'C:\Chocolatey'. | |
Creating 'C:\Chocolatey\bin\chocolatey.bat' so you can call 'chocolatey' from anywhere. | |
Creating 'C:\Chocolatey\bin\cinst.bat' so you can call 'chocolatey install' from a shortcut of 'cinst'. | |
Creating 'C:\Chocolatey\bin\cinstm.bat' so you can call 'chocolatey installmissing' from a shortcut of 'cinstm'. | |
Creating 'C:\Chocolatey\bin\cup.bat' so you can call 'chocolatey update' from a shortcut of 'cup'. | |
Creating 'C:\Chocolatey\bin\clist.bat' so you can call 'chocolatey list' from a shortcut of 'clist'. | |
Creating 'C:\Chocolatey\bin\cver.bat' so you can call 'chocolatey version' from a shortcut of 'cver'. | |
Creating 'C:\Chocolatey\bin\cwebpi.bat' so you can call 'chocolatey webpi' from a shortcut of 'cwebpi'. | |
Creating 'C:\Chocolatey\bin\cwindowsfeatures.bat' so you can call 'chocolatey windowsfeatures' from a shortcut of 'cwindowsfeatures'. | |
Creating 'C:\Chocolatey\bin\ccygwin.bat' so you can call 'chocolatey cygwin' from a shortcut of 'ccygwin'. | |
Creating 'C:\Chocolatey\bin\cpython.bat' so you can call 'chocolatey python' from a shortcut of 'cpython'. | |
Creating 'C:\Chocolatey\bin\cgem.bat' so you can call 'chocolatey gem' from a shortcut of 'cgem'. | |
Creating 'C:\Chocolatey\bin\cpack.bat' so you can call 'chocolatey pack' from a shortcut of 'cpack'. | |
Creating 'C:\Chocolatey\bin\cpush.bat' so you can call 'chocolatey push' from a shortcut of 'cpush'. | |
Creating 'C:\Chocolatey\bin\cuninst.bat' so you can call 'chocolatey uninstall' from a shortcut of 'cuninst'. | |
PATH environment variable does not have 'C:\Chocolatey\bin' in it. Adding. | |
Processing ccygwin.bat to make it portable | |
Processing cgem.bat to make it portable | |
Processing chocolatey.bat to make it portable | |
Processing cinst.bat to make it portable | |
Processing cinstm.bat to make it portable | |
Processing clist.bat to make it portable | |
Processing cpack.bat to make it portable | |
Processing cpush.bat to make it portable | |
Processing cpython.bat to make it portable | |
Processing cuninst.bat to make it portable | |
Processing cup.bat to make it portable | |
Processing cver.bat to make it portable | |
Processing cwebpi.bat to make it portable | |
Processing cwindowsfeatures.bat to make it portable | |
Chocolatey is now ready. | |
You can call chocolatey from anywhere, command line or powershell by typing chocolatey. | |
Run chocolatey /? for a list of functions. | |
You may need to shut down and restart powershell and/or consoles first prior to using chocolatey. | |
If you are upgrading chocolatey from an older version (prior to 0.9.8.15) and don't use a custom chocolatey path, please find and delete the C:\NuGet folder after verifying that C:\Chocolatey has the same contents (minus chocolateyinstall of course). | |
Ensuring chocolatey commands are on the path | |
C:\Users\foo> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment