Just saw a post of a novice user asking why are there so many package managers.

At first I was about to copy and paste the good old “The OS is yours if you want to make a different package manager you can, and many did”.

But then I though

Damn how does Linux have standards !?

And reached a somewhat of conclusion that many of the established standards were established at the early stages of the project, there are of course those who change like the transition from X11 to Wayland the upcoming desktop portals and such.

And here is my hipotesis if the GNU project came up with a good and easy to work package manager in the early days of Linux, do you think we would have so many different ones? Maybe even win the desktop war (OS not DEs)?

Edit: replace package manager with packaging format

  • cerement@slrpnk.net
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    1 year ago
    • xkcd: Standards
    • one of the most unappreciated aspects of any package manager is how they handle dependency resolution – the modern formats (Flatpak, Snap, AppImage) “solve” the problem by completely ignoring it altogether and just shoving everything-and-the-kitchen-sink into one blob – which works great as long as storage remains cheap or you’re not trying to develop for embedded systems
    • GNU has a package manager – and it’s being used in a current distro
    • GNU development tends to be glacial even compared to something like Debian – the GNU kernel is 33 years old at this point …
    • Kusimulkku@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Flatpak uses runtimes, which is sorta a middle point between traditional package way and and bundling everything. Quite a nice compromise imo

      • cerement@slrpnk.net
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        had to doublecheck myself …

        • yes, Guix uses the Guix package manager
        • but apparently the Guix package manager is built off (at least the concept) of Stow ?
        • [and then some people also seem to like using Stow and Guix together (similar to using Home Manager with Nix package manager)]
  • nous@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Damn how does Linux have standards !?

    Linux has standards where interoperability is important. The more things needs to talk to each other the more they need a common standard to talk over. Things like X11/Wayland don’t have many alternatives as so many things need to talk over them. The only reason there are two standards here is because X11 has massive limitations that cannot easily be worked around.

    For package managers applications don’t care about them. Interoperability only matters within a single distro. So people are more free to create what ever standards they want for their own distros. And when people can choose people have opinions and these opinions evolve over time. Which results in multiple competing products that effectively do the same thing.

    And here is my hipotesis if the GNU project came up with a good and easy to work package manager in the early days of Linux

    Probably, but creating a good, easy to work, fast and reliable package manager that meets everyones needs when you are discovering how you want it to work for the first time is extremely hard. And even if you created a perfect one at the start, requirements can change. This happened with X11, and even with package managers seeing the rise of things like flatpack, snap and appimage that all work fundamentally different from the traditional ones.

    • ransomwarelettuce@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      OK maybe what I meant was a packaging format and not a package manager, above there was a user that mentioned that all distros have their quirks and kinks, if GNU created a package manager that worked perfectly at first time maybe it’s adoption would go across the distros but as u said to make it perfect the first time is something hard and even harder on early days where nothing was set on stone and there would be always the odd one that would make their package manager.

      But if we all agreed early on, one one packaging format (which of course would have to go through many iterations to reach a stable state ) all package format wars would be over and in well implemented ecosystem of package managers of each distro, it would be also an somewhat interoperable one.

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        The package format is almost irrelevant TBH. Most packages are not interoperable between distros due to the versions and names of dependencies. That is not something that gets fixed by a standard package format. Packages don’t even work well between different versions of the same distro. largely due to libc - anything that depends on that is built against a specific version and when you upgrade it you need to rebuild and install everything that depends on it. Similar problems exist for all compiled dependencies on a distro.

        And while some packages of the same format can be installed on multiple distros (mostly those based of the same foundation) most cannot. This is what the newer package formats (like flatpack) are trying to solve - by including all dependencies inside the package.

        So a standard format does not really solve those issues, so there is little advantage for one. At least not one of the old school formats. And the wars are not really over the format, they are over the tooling required for that format. At the end of the day RPMs, DEBs, and arch packages are just tarballs of files and some meta data (and there is even a tool that can convert between them - though anything with dependencies quickly becomes a complete mess). It is the build and install tooling that makes all the difference.

        • ransomwarelettuce@lemmy.worldOP
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          1 year ago

          Oh … thx for the insight, it was a daydream anyways looks like the only solution is cloud native if one wants uniformity, still a bit hesitant to have a system so stable I can’t change it’s core filesystem.

    • ransomwarelettuce@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Yeah of course I get your argument although we have rpm (or deb in debain based distros) across redHat and OpenSUSE it does not mean that the same rpm package would work on both systems due to distro specific aspects (like different root structures, init systems etc . . .), but that’s something for the package manager to solve, the package format could be agreed upon, which would ease the workload of developers and maintainers since the moment you know the target distros of a package they could see the base differences of said distros and add symlinks, dependencies, environment variables, services … as needed for the package.

      This seems like it could lead to a whole lotta of conflicts, but I think if the daddy distros were designed all with one package format in mind, such format could be somewhat interoperable.