How to install chocolatey nuget

Published on 04 January 2013

Time to get chocolatey...

If you are not already familiar with chocolatey nuget, let me give you a brief introduction.

Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind."

What does this mean?  It means that once you have chocolatey nuget installed, you can easily install applications (packages), that are stored in the chocolatey gallery, with a single command.  What's more, if these packages are ever updated, you can update them on your machine using, again, a single command.

If you want to find out more information about chocolatey nuget you can browse the available packages here, read the documentation here, and ask questions on the forum here.

Installation Steps

**NOTE: **The following installation steps and screenshots were taken from a virtual machine   with Windows Server 2008 R2 Service Pack 1, running in Hyper-V on a Windows 8 Host Machine.

  1. Open a Command Prompt as Administrator
  2. Hit the Start button
  3. Type "cmd"
  4. Right click on the "cmd" icon
  5. Click "Run as administrator"
  6. Enter the following command (you can simply copy/paste this command) and then press the "Enter" key:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin

  1. The installation of chocolatey will begin
  2. The installation will complete

You can see screenshots of each of these steps in the gallery at the bottom of this blog post.

What has the installation done

Once the installation is complete you will notice a few immediate changes on your computer.

  1. Chocolatey will have added a number of folders/files to the root of your c:\ drive.
  2. Chocolatey will have added some environment variables to allow the commands that is provides work

Post Installation Checks

To verify that verify is working correctly:

  1. Open PowerShell as an Administrator (not strictly required, but a good habit to get into)
  2. Hit the Start button
  3. Type "PowerShell"
  4. Right click on the "Windows PowerShell" icon
  5. Click "Run as administrator"
  6. Type "chocolatey help"
  7. If everything is working correctly, you should get some output confirming the version of chocolatey nuget installed, as well as some information about it.

Installation Screenshots

Powered by flickr embed.
comments powered by Disqus