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]: