FlatPak as a Software Source / flathub as a source of software

Recent releases,

  • come with Flathub system-wide enabled by default.
  • do not come with Flathub per-user enabled by default.

References for Flathub system-wide:

The flathub repository is enabled by default system-wide. This means, by default:

flatpak install flathub org.mozilla.firefox

can be used.


However, the flathub repository is not enabled by default yet per-user or for user user. Therefore,

flatpak --user install flathub org.mozilla.firefox

would fail. To make it work, the following command would be required.

flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Now, the obvious thing to suggest would be “enable flathub by default for per-user too”. But first, there are some Linux permission specific issues.

Also if flathub was enabled, both system-wide and per-user, once trying to install a flatpak, it would show the following confusing message.

Looking for matches…
Remote ‘flathub’ found in multiple installations:

   1) system
   2) user

Which do you want to use (0 to abort)? [0-2]:

Due to flatpak bad security design in mind, and require even more privileges, i suggest to have it ditched and rely on the old style of only having packages downloaded&installed from the distro main repos.

As a replacement, i suggest something more secure with the same upgraded packages, a stable and secure rolling distro.

e.g Tumbleweed:

What specifically?

One crazier than the other e.g: Downloading the binaries not the source code from the developers (firefox, vscodium…etc), doesnt pass TUF as it suffers from indefinite freeze attacks, blobs,…etc just garbage way to have newer software.

What kind of blobs?

" Flathub’s build process of downloading binaries poses certain risks. Since builds are automated, it is unlikely and not enforced that the packager verifies that the source code is complete, can be compiled, and is free of binary blobs, Embedded Code Copies of libraries, other software, or non-freedom software."

Flathub feature request (written just now):

This shows that a Linux distribution or any software delivery mechanism is also a curator that performs a software quality review. For example,

  • in Debian embedded code copies are prohibited, source code is scanned for binaries are build servers have no network access.
  • on Flathub, some flatpaks are a simpler a wrapper around the binaries from the original developers, where no such checks are performed.

Both approaches have advantages and disadvantages. Flathub provides often more recent software than Debian but Debian performs a more stringent quality review and always buils all software in its main repository component from source code.

1 Like

I think its game over, they just dont want to take the effort and do it correctly. Happy with the stupid mechanism they have.