Support for cask equivalents on Linux (eg 1Password GUI & CLI) #1081
-
Can someone please advise on whether there would be interest in providing support on Linux for formula that on macOS are provided as casks and if so, how? I've searched for similar questions, but can't find anything. For example, the 1Password GUI on Mac is a cask. Also the CLI is a cask as well, despite not being a GUI app (ie it's installed to Both the GUI and CLI are available on Linux, so would it cause any issues to have those as normal formula on Linux? FWIW I'm a macOS user, but I have colleagues that use Linux and it would be convenient for them to install these apps in the same way. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
The correct solution here might be to try to get Homebrew Cask working on Linux and add this software as Linux casks. That will take some work, however. You're welcome to look into it if you're interested. |
Beta Was this translation helpful? Give feedback.
-
If they build from source they can be a formula but I do not think that is the case here. If you want to extend support for casks to Linux I'm sure a lot of people would be very happy with it, but that is going to be a lot of work. |
Beta Was this translation helpful? Give feedback.
-
I think there are two major stumbling blocks with supporting casks on Linux:
In the end, I suspect any workable Linux cask framework would be some combination of the following:
As @SMillerDev said, it'll be a lot of work, and it probably wouldn't move the needle much beyond the current "formulae-only for Linux". |
Beta Was this translation helpful? Give feedback.
-
I know this has been marked as answered, but I believe there's a middle that I THINK wouldn't be hard to implement. The idea is to have a mechanism similar to the Distro could be selected by best match. E.g. imagine there are packages for I'm suggesting this because I started creating formula manifests for Comtrya so I can easily move from one distro to another and that's exactly how I choose between For developers, the impact on performance of using snaps or flatpacks is not negligible (at least for me). But installing all needed packages buy hand is a hassle and having that on brew would be a life saver! |
Beta Was this translation helpful? Give feedback.
-
Preliminary support for Linux casks shipped in 4.5.0 |
Beta Was this translation helpful? Give feedback.
I think there are two major stumbling blocks with supporting casks on Linux:
"When you've seen one Linux...you've seen one Linux." All macOS platforms have a consistent system environment (libraries, services, etc.). The Linux landscape, in contrast, is pretty much "wild west" territory even now. I believe that's why the Linuxbrew core audit complains loudly about linking against any non-Homebrew libraries (except the unavoidable
glibc
andgcc
system libraries).Lack of installers. macOS software vendors provide the necessary installers with their binaries, and/or use standard OS conventions that are easy to specify in a cask. Linux vendors, OTOH, usually provide RPM and/or DEB packag…