- 14 Mar 2023
- 1 Minute to read
- Print
- DarkLight
- PDF
Chocolatey (Windows/Machine)
- Updated on 14 Mar 2023
- 1 Minute to read
- Print
- DarkLight
- PDF
Chocolatey Feeds in Proget
Chocolatey is a package manager for Windows. Similar to Linux tools like apt or yum, but designed specifically for Windows, Chocolatey is designed as a decentralized framework for quickly installing applications and tools you need.
Prerequisite Configuration
ProGet is compatible with all versions of the Chocolatey client, going back to the first release in 2011.
Installing Packages
There are four ways to add a package to your Chocolatey feed:
- Push via Chocolatey Command Line:
choco install {package-name} --version {package-version} --source http://{proget-server}/nuget/{feed-name}/
- Upload from disk
- Pull from Chocolatey.org
- Bulk import existing Chocolatey packages
Creating Packages
To learn how to create a package that can be hosted by ProGet, visit the Creating Chocolatey Packages.
NuGet Feed Differences
Because the Chocolatey API is built on top of the NuGet v2 API, a Chocolatey feed in ProGet is actually a NuGet feed with some slight differences in behavior:
- Packages in Chocolatey feeds have a different icon to indicate that they are intended for use by Chocolatey
- The package installation instructions also include an example of installing the package using 'choco' instead of NuGet
- The Package Usage feature is enabled, while the Package Consumers feature is disabled
- Internalized packages can be hosted in Chocolatey feeds
ProGet + Chocolatey Webinar
In the following video, Chocolatey founder Rob Reynolds presents a demo of ProGet and Chocolatey, showing how the two combine to form a complete Windows package management solution.
ProGet's user interface has been updated since this video, but the instructions provided are still valid.