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?
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?
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.
choco.exe
is a .NET assembly, you should be able to run mono choco.exe
to run it on Linux, without actually having to recompile it (since .NET assemblies use bytecode). –
Gerik © 2022 - 2024 — McMap. All rights reserved.
choco.exe
is a .NET assembly, you should be able to runmono choco.exe
to run it on Linux. The issue is that I can't figure out how to obtain the executable without actually installing Chocolatey (and the install script doesn't seem to work on Linux) – Gerik