Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I build Chocolatey packages on Linux?

Tags:

chocolatey

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?

like image 585
Pascal Mages Avatar asked Sep 08 '16 08:09

Pascal Mages


People also ask

Does Chocolatey work 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.

Is Winget better than Chocolatey?

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.


1 Answers

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.

like image 81
Gary Ewan Park Avatar answered Sep 20 '22 17:09

Gary Ewan Park