How to install Chocolatey in Windows: A Windows package manager

Web professionals (Developers, Programmers, Designers) need a lot of tools in their work.  We need to be quick and effortless. To install all those tools used to be a nightmare. While the Mac OSX peers enjoyed the beauty of Homebrew package manager, Windows users were locked in the dark age until the introduction of a delicious Windows package manager called Chocolatey. Installation will be like having a piece of chocolate. You just need command “choco install” to install any software tool that you want to install.

How to install Chocolatey guide


Command Line

This really is the easiest method because it requires no configuration of PowerShell prior to executing it. Open a command line, paste the following and press <Enter>:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString(''))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin


This is the second-most easy method. Open a PowerShell command line and paste in the following and press <Enter>:

(iex ((new-object net.webclient).DownloadString('')))>$null 2>&1

Note: You must have your execution policy set to unrestricted (or at least in bypass) for this to work (Set-ExecutionPolicy Unrestricted). There have been reports that RemoteSigned is enough for the install to work.
It downloads and runs (

Some Chocolatey commands:


  • list – lists remote or local packages
  • search – searches remote or local packages (alias for list)
  • info – retrieves package information. Shorthand for choco search pkgname –exact –verbose
  • install – installs packages from various sources
  • pin – suppress upgrades for a package
  • outdated – retrieves packages that are outdated. Similar to upgrade all –noop
  • upgrade – upgrades packages from various sources
  • uninstall – uninstalls a package
  • pack – packages up a nuspec to a compiled nupkg
  • push – pushes a compiled nupkg
  • new – generates files necessary for a chocolatey package from a template
  • sources – view and configure default sources (alias for source)
  • source – view and configure default sources
  • config – Retrieve and configure config file settings
  • features – view and configure choco features (alias for feature)
  • feature – view and configure choco features
  • setapikey – retrieves or saves an apikey for a particular source (alias for apikey)
  • apikey – retrieves or saves an apikey for a particular source
  • unpackself – have chocolatey set it self up
  • version – [DEPRECATED] will be removed in v1 – use `choco outdated` or cup <pkg|all> -whatif instead
  • update – [DEPRECATED] RESERVED for future use (you are looking for upgrade, these are not the droids you are looking for)
  • download – downloads packages – optionally downloading and internalizing all remote resources (recompiling)


  1. Chocolatey – Installation . 2016. Chocolatey – Installation . [ONLINE] Available at: [Accessed 26 June 2016].
  2. GitHub. 2016. CommandsReference · chocolatey/choco Wiki · GitHub. [ONLINE] Available at: [Accessed 26 June 2016].