• TCB13@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 months ago

    Unmirrorable

    Yes, unlike apt repositories, it wasn’t designed to be mirrored around, run isolated servers etc.

    • Zyratoxx@lemm.ee
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      5 months ago

      Flatpak was designed to be decentralised, Flathub is just the main repository offering flatpaks and yes, probably 99% of all Flatpak applications are downloaded via the main repo but it is technically possible to just launch your own if you are unhappy with the main repo. The Flatpak team literally has this info page for hosting a repository

      I for example, am taking AAGL from their own flatpak repo because they are not offering their launcher via the main one (even tho they also tell you to link the main repo - I guess for dependency reasons - but theoretically you could open your own repo and throw all dependency related packages in there or am I getting something wrong here)

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 months ago

        I agree with everything you said, however there are a few details.

        it is technically possible to just launch your own [repo]

        The ability to create repositories from mirror existing ones.

        Unlike apt repositories Flatpak ones aren’t simply a directory tree with a bunch of files that can get mirrored using rysnc or other efficient means, it’s a clusterfuck of HTTP-only requests that need to be backed by specific metadata and there aren’t tools to manage those.

        flatpak create-usb may be promising but the name says its all - the priority wasn’t to create a way to mirror repositories but a quick and dirty hack for some situation.

        theoretically you could open your own repo and throw all dependency related packages in there or am I getting something wrong here

        Theoretically yes, in practice things are bit more nuanced. That tools only considers your current architecture, it’s a pain to get dependencies in an automated way and most of the time you’ll end up with broken archives. You’ll also need to hack things a lot.