Pascal Mages
Pascal Mages

Reputation: 187

Can I build Chocolatey packages on Linux?

It's pretty easy to build Chocolatey packages on a Windows machine. But, so far, I haven't found a documented way to build packages on Linux.

For example, how would I run choco.exe, a Windows executable, on Linux?

Upvotes: 6

Views: 7530

Answers (1)

Gary Ewan Park
Gary Ewan Park

Reputation: 19021

Since around 2014, running Chocolatey on Linux machines (using Mono have been supported). Rob Reynolds, the creator of Chocolatey actually demoed this capability at PuppetConf 2014. The demo of creating a package starts around the 11 minute mark in that video. As a result, the process of building a Chocolatey package, i.e. choco pack is currently supported today.

NOTE: I have assumed that the terminology of building a package is the same as creating a package.

Currently, a choco binary, which is compiled for usage on Linux is not distributed anywhere. However, we do currently build Choco using Travis. You can see the YAML file here. In theory, you should be able to grab the source code from GitHub, then execute the same commands that Travis does, to generate a compiled version of choco that you can use on Linux.

Upvotes: 7

Related Questions