12
submitted 3 days ago by tkw8@lemm.ee to c/linux@lemmy.ml

If you're using linux and also use brew package manager on your machine, what is your use case? I'm curious why people would use brew in addition to their distribution's native package manager.

you are viewing a single comment's thread
view the rest of the comments
[-] avidamoeba@lemmy.ca 2 points 3 days ago* (last edited 3 days ago)

No I use Debian. For anything that's somehow not packaged for it, there's Docker.

[-] thingsiplay@beehaw.org 2 points 2 days ago

I still don't get Docker. Can we see it as a universal package format that works across all systems, kind of? Well in that regard, we also have JavaScript based applications for the web browser and Web Assembly to run locally too.

[-] avidamoeba@lemmy.ca 2 points 2 days ago

It's more than a packaging format but yes. It includes all dependencies needed to run the main program in a container but the kernel. It's a complete separate root filesystem. When you run it, as intended, a single process is started which loads all the things it needs from that filesystem. It's isolated from the rest of the system unless you share resources with it, like directories or special devices. Obviously this results in larger packages but there is a clever way to save on that overhead with layering, so in practice while still significantly larger than single program deb files, it's not nearly as bad as it sounds. The thing is that Flatpak and Snap also package dependencies to a different degree.

[-] LeFantome@programming.dev 1 points 2 days ago* (last edited 2 days ago)

You can think of Docker and Podman as an almost zero overhead (CPU and RAM) way of running one distribution on another. So, you can run an application in Docker that expects to be running on a different distro from what you use (say Ubuntu Jenkins but actually running on Debian). The environment that the applications run in are called “containers”. Mostly they contain the filesystem layout and application libraries that the app expects.

Docker itself is designed to sandbox the application away from your host system. A related technology, Distrobox, uses the same containers but in a way that the applications know they are running on your system with full access to your display manager and home directory.

I run an Arch Distrobox on every distro that I use. This allows me full access to all the Arch repos and the AUR even on other distros ( eg. Alpine, Chinese Linux, or Debian).

Flatpak also uses containers and so you can consider Distrobox as a Flatpak alternative. Flatpak containers are not the same as those that Docker uses but they rely on the same underlying Linux kernel features to do what they do. In Flatpak, you are essentially running the Freedesktop distro on top of your host distro (so much like Distrobox with the guest distro chosen for you).

this post was submitted on 04 Jun 2025
12 points (83.3% liked)

Linux

54753 readers
429 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS