Flatpak can be installed from the community repository. Run the following in a terminal:doas apk add flatpak
Install the Software Flatpak plugin
You can install the Flatpak plugin for either the GNOME Software (since v3.13) or KDE Discover (since v3.11), making it possible to install apps without needing the command line. To install, for GNOME Software run:doas apk add gnome-software-plugin-flatpak
For KDE Discover run:doas apk add discover-backend-flatpak
Add the Flathub repository
Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
To complete the setup, restart your system. Now all you have to do is install some apps!