Flatpak

From postmarketOS Wiki
Note postmarketOS and Alpine developers have no control over the Flatpak repositories and the software may not follow the same principles as we do. Flathub has proprietary software in their repositories.

The recommended way of installing applications in postmarketOS is through the official package repositories from Alpine and pmOS. Advanced users may consider installing Flatpak to install additional applications from Flathub (or other Flatpak repositories).

Installation

$ sudo apk add flatpak

Add Flathub Repository

$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Reboot before use

If you encounter strange issues after installation, it might be necessary to reboot your device. [1]

Why there is no postmarketOS-specific Flatpak repository

Flatpak has good sandboxing features. However, the packaging format is entirely different to APKBUILD, in syntax and in its philosophy. If we created our own Flatpak repository, we would have much more maintenance effort [2].

See also

  • postmarketos#18 Evaluating privilege separation for postmarketOS and Alpine apps