this post was submitted on 22 Jun 2024
608 points (97.8% liked)

Linux

46777 readers
1951 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 months ago* (last edited 2 months ago) (1 children)

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)

[–] [email protected] 4 points 2 months ago (1 children)

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.

[–] [email protected] 2 points 2 months ago

Ah, thx for the explanation :)