Windows Package Manager Chocolatey

Published by

Posted on November 10, 2015

Chocolatey
Website :https://chocolatey.org/

There is an equivalent of apt-get and yum for Windows. The application is called Chocolatey and uses the NUGET packaging manager. I decided to test this in the lab and see how it works. So I downloaded the application and installed Cyberduck CLI version. The installer went fine with the exception it installed a very old version of Cyberduck CLI

Due to the current package not being available in the default source. I was inclined to create my own package. After researching online It seem pretty straight forward

Created a package directory
Create a subfolder called
In the app directory I created a file called
The content of this file included

Duck
Duck Cli
4.8.0.18498
AppAuthor
Cyberduck

Duck cli -mas

Your descriptions here
http://duck.sh some tags here
http://www.openkb.org/license.txt false
http://www.openkb.org/logo.png
In the tools directory I created a file called chocolateyInstall.ps1 with the below content
Install-ChocolateyPackage ‘duck’ ‘exe’ ‘/quiet’ ‘https://dist.duck.sh/duck-4.8.0.18498.exe’ ‘https://dist.duck.sh/duck-4.8.0.18498.exe’

After creating the files I ran “cpack” which created a file called Duck.4.8.0.18498.nupkg.

Installing this new package required the following command
cinst duck -source %cd%

Verify the install
C:\Users\cybersnacker\Downloads\choc\ducklatest>clist -localonly
chocolatey 0.9.9.11
Duck 4.8.0.18498
2 packages installed.

Reference sites
https://www.topbug.net/blog/2012/07/02/a-simple-tutorial-create-and-publish-chocolatey-packages/
http://geekswithblogs.net/TimothyK/archive/2014/03/27/creating-nuget-packages.aspx

http://docs.nuget.org/Create/Creating-and-Publishing-a-Package#powershell