Basically title.

I’m wondering if a package manager like flatpak comes with any drawback or negatives. Since it just works on basically any distro. Why isn’t this just the default? It seems very convenient.

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 months ago

    downloading 300+ MB of libraries for a 2MB Program is just not feasible for me

    Correct me if I’m wrong, but doesn’t that also happen with your system package manager? Those dependencies need to come from somewhere.

    That excludes the stupid Nvidia packages, of course, because while Nvidia has given Flatpak permission to distribute their binaries, the legal compliance workaround of “download the specific version of the driver every time because we’re not allowed to redistribute the files” still seems to be in use, which is terribly annoying.

    • twoshoes@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 months ago

      Yes, of course. But afaik the idea of flatpak is, that every program has a list of libraries and versions of them that it wants. So when program X was built with libfoo version 1 and program Y needs libfoo version 2, you basically download the library twice.

      When you go through the package manager, you just download the current version that’s in the repository. This can lead to problems when a program expects some functionality that has since been deprecated, but I never actually had issues with that.

      Also, a lot of the libraries a flatpak downloads are already installed on the system, just in a different version, I noticed.

      I’m on a home computer that I use by myself, mind you. So if something breaks, it’s just my own problem. If I were to use software in production or even just administer the computer of a tech-unsavy relative, I’d likely use flatpaks or similar for stability and security reasons.

    • NaN@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      9 months ago

      It does not. Flatpak uses the full platforms, the native package manager will install the individual libraries that are needed. This is technically a flathub thing and could be implemented more granularly, but I don’t think that is going to happen.

      I’ve started getting warnings about deprecated platforms but flathub is very slow to update the packages that use them (even with reports), which is unfortunate too and not something I’ve encountered in my distro repository.