Distributing applications on Linux is a pain: different distributions in multiple versions, each with their own versions of libraries and packaging formats. Flatpak is here to change all that. It allows the same app to be installed on different Linux distributions, including different versions. And it has been designed from the ground up with security in mind, so that apps are isolated from each other and from the host system.
Runtimes contain the dependencies that are used by apps. They are always the same, whatever Linux distribution is being used. It means that apps no longer have to be updated to keep pace with distribution changes.
Dependencies that aren't in a runtime can be bundled as part of the app. This makes it possible to use dependencies that aren't in a distribution, and to use a different version of a dependency than the one that's in a distribution.
Flatpak isolates apps from the host OS as well as from other applications. This provides security for users and a predictable environment for developers. (Some of these features are work in progress)
With Flatpak, applications can be safely updated on a running system, without fear of conflicts occuring. Flatpak also allows multiple versions of the same application to be installed at the same time, which is great for testing development or testing versions. And in the future, Flatpak's security first approach guarantee greater privacy and peace of mind.
Various applications are available as Flatpaks, including stable and nightly GNOME applications, and a collection of nightly builds of graphics applications like GIMP, Inkscape and MyPaint. See the apps page for more details.
In the near future, you will be able to install flatpaks painlessly from graphical tools such as GNOME Software. Until then, you can use the commandline tool to install and update flatpaks.
Before you can install applications with Flatpak, you need to install Flatpak itself. Currently this has to be done using the command line. This section contains instructions for installing Flatpak on Fedora or Ubuntu. Details on how to install Flatpak on other distros are available on the getting Flatpak page.
With Fedora 23 or later, run:
$ sudo dnf install flatpak
On Ubuntu, Flatpak is available through a PPA. To install it, run:
$ sudo add-apt-repository ppa:alexlarsson/flatpak $ sudo apt update $ sudo apt install flatpak
Flatpak allows you to install software from remote repositories. For this example we're going to use two repositories: one which contains GNOME apps, and one which contains the runtime that provides the dependencies they need.
$ flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo $ flatpak remote-add --from gnome-apps https://sdk.gnome.org/gnome-apps.flatpakrepo
Once this is complete, you're all set to install some apps!
To view which apps are available in the gnome-apps repository, just run:
$ flatpak remote-ls gnome-apps --app
To download and install an app, like gedit, run:
$ flatpak install gnome-apps org.gnome.geditThis will automatically find and install the required runtime that the application depends on from the set of configured remotes.
Installed applications should appear in the usual place in your desktop. You can also run them from the command line:
$ flatpak run org.gnome.gedit