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?
Chocolatey is not available for Linux but there are plenty of alternatives that runs on Linux with similar functionality. The best Linux alternative is Homebrew, which is both free and Open Source.
winget definitely feels faster than Chocolatey and having one less tool in the system is nice. But it also has downsides. The biggest one is that you must manually configure the PATH to point to newly installed software. And fiddling with environment variables on Windows just feels wrong.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With