If you haven?t heard of it, you?re about to be delighted. Every developer (at least those on Windows) should know about this project, if for nothing more than to make life setting up your dev machine a piece of cake.
What is Chocolatey?
Straight from the Chocolatey.org site:
Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with windows in mind.
If you?ve not ever used a linux machine or understand what the power of an ?apt-get? like tool is, well It?s basically the simplest possible way to install an application to your machine.
What could be simpler than finding the app?s website, download the app, and next, next, next through the the installer? How about just typing ?chocolaty install notepadplusplus? at a powershell command prompt? That simple little command will download and install Notepad++ right on your machine with virtually no need to interact with the installer. AWESOME!!!
Disclaimer!
I know there are other installer applications out there that aggregate and install different? programs; however, to be honest, I don?t use any of them. I am also going to assume that most of them aren?t catered to the windows developer (maybe I?m wrong). Either way I like this project and I?m just trying to share it with the community. So There?
Ok, my above salesmanship is a little loud mouthy, but maybe your interest is peaked enough to give it a try.
How do I install Chocolatey?
It?s about as simple to install Chocolatey as it is to use Chocolatey to install other applications. One single powershell command. Just paste the below command in your powershell prompt and let er rip.
First, make sure you have your powershell environment set to ?Unrestricted?.
Run the Chocolatey install.
iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))
Packages!
Now that you have chocolatey installed, head over to the Chocolatey.org website and browse the packages you can now install.
EX:
C:\Code>chocolatey install notepadplusplus
How can I know when new packages are added to the Chocolatey.org feed?
You can get more background on this approach by following my previous post What?s happening on the NuGet feed (leveraging OData in an RSS reader)
The direct RSS link I have is as follows:
Plug that into your RSS reader and you should be notified when new packages are added to the Chocolatey.org feed.
Happy Setting up your Dev Machine!
PowerShell command to install Chocolatey is little bit wrong. You forgot quotation marks for URL.
Thanks – seemes the paste into Live Writer did something funny there. Fixed.
Doh – seems not seemes
If you’re behind a proxy (fingers crossed re formatting):
$url = “http://bit.ly/psChocInstall”
$wc = New-Object Net.WebClient
$wc.UseDefaultCredentials = $true
$wc.Proxy.Credentials = $wc.Credentials
iex $wc.DownloadString($url)
If only it was that simple. Ref http://blogs.lessthandot.com/index.php/DesktopDev/MSTech/getting-chocolatey-to-work-when
The guy that provided the proxy stuff was behind a squid proxy. Perhaps a prompt could be in place if it fails. Not optimal, but would still work.
Very nice. I like very mucho! Thanx for the simple tutorial.