Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal. You can also buy games using our partner links for GOG and Humble Store.
We do often include affiliate links to earn us some pennies. See more here.

Flatpak is the next-generation of packing applications and games for Linux and now you can directly support it.

The idea behind Flatpak is that anything packaged up with it will work across multiple distributions, with a stable environment for everything thanks to common libraries to link against and developers can add any dependencies they need right into the package to ensure it works everywhere. Sandboxing is another prominent feature and one of the main goals of Flatpak packages, to increase security by isolating applications from each other with sandboxing and giving limited access to your operating system.

YouTube Thumbnail
YouTube videos require cookies, you must accept their cookies to view. View cookie preferences.
Accept Cookies & Show   Direct Link

There's also Snap packages supported by Canonical as another next-gen format for Linux, but one of the problems there that we've seen people talk often about is how the back-end supporting it all is proprietary and tightly controlled whereas Flatpaks are fully open source. You can learn a lot more about Flatpak at this link.

For Flatpak installs you can use the Flathub website, which is the most convenient but anyone can host their own repository too.

Just recently the team announced they've setup an Open Collective effort to gather more funding, so now you too can help push forward this newer packaging format. Open Collective is pretty slick, as it keeps all the finances open so you can see what goes in and out for it. So if you think Flatpak is important for the future, you can go support it.

Article taken from GamingOnLinux.com.
19 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly checked on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly.
See more from me
The comments on this article are closed.
38 comments
Page: 1/2»
  Go to:

Zlopez Jul 29, 2021
  • Supporter Plus
I think the flatpaks are really great (I'm using distro, that is made for use with flatpaks), but there is one issue with Flathub regarding games, the runtimes (shared libraries between flatpaks) are updated continuously so you still have the same issue like with current Linux OS, the libraries will be incompatible in a few years. You can still make your own flatpak with old runtimes though, but they will be rejected by Flathub for security reasons, which is understandable, but it lacks the purpose of distribution by Flathub.

I would say that for game distribution the stable environment like Linux Runtime Containers provided by Steam is a must.

From current multi-distro packaging solutions the most useful for games is probably AppImage, which allows you to just package everything inside it and you don't need to install anything on the host machine to run it. There are few caveats however:

1) Often some libraries are missing inside AppImage, because there were on the OS of packager and he didn't found they are actually missing

2) No integration to distribution, at least not any I was able to found in past
Lofty Jul 29, 2021
Quoting: ZlopezI think the flatpaks are really great (I'm using distro, that is made for use with flatpaks), but there is one issue with Flathub regarding games, the runtimes (shared libraries between flatpaks) are updated continuously so you still have the same issue like with current Linux OS, the libraries will be incompatible in a few years. You can still make your own flatpak with old runtimes though, but they will be rejected by Flathub for security reasons, which is understandable, but it lacks the purpose of distribution by Flathub.

I would say that for game distribution the stable environment like Linux Runtime Containers provided by Steam is a must.

From current multi-distro packaging solutions the most useful for games is probably AppImage, which allows you to just package everything inside it and you don't need to install anything on the host machine to run it. There are few caveats however:

1) Often some libraries are missing inside AppImage, because there were on the OS of packager and he didn't found they are actually missing

2) No integration to distribution, at least not any I was able to found in past

ootb appimage does not support sandboxing ? or am i mistaken. And by that i mean typically as a default not that "it could in theory and it's upto the dev" kind of affair.
PublicNuisance Jul 29, 2021
I don't have a horse in the race but here is an article worth reading as devil's advocate.

https://flatkill.org/2020/
F.Ultra Jul 29, 2021
View PC info
  • Supporter
Quoting: PublicNuisanceI don't have a horse in the race but here is an article worth reading as devil's advocate.

https://flatkill.org/2020/

Yes this "next generation" packaging is really the stone age packaging while rpm/apt is the real next-generation. That said, for games the security issues are basically zero (basically but not to 100%) since few games have open external ports or handle random files/data that you feed it like it is for applications.
PublicNuisance Jul 29, 2021
Quoting: F.Ultra
Quoting: PublicNuisanceI don't have a horse in the race but here is an article worth reading as devil's advocate.

https://flatkill.org/2020/

Yes this "next generation" packaging is really the stone age packaging while rpm/apt is the real next-generation. That said, for games the security issues are basically zero (basically but not to 100%) since few games have open external ports or handle random files/data that you feed it like it is for applications.

I guess if one wanted to go far enough they could say that most games are closed source so we don't really know what they have or what they could be doing so are a security risk themselves. Although until FOSS gaming catches up a bit I doubt they're a risk I could totally give up.
Incandescent Jul 29, 2021
Quoting: Zlopez2) No integration to distribution, at least not any I was able to found in past

The tool 'appimaged' integrates appimages into the system (menus, etc) in a very slick way. Hopefully at some point its included by default with a distro.

Here's a link to it: https://github.com/probonopd/go-appimage
WorMzy Jul 29, 2021
Quoting: F.Ultra
Quoting: PublicNuisanceI don't have a horse in the race but here is an article worth reading as devil's advocate.

https://flatkill.org/2020/

Yes this "next generation" packaging is really the stone age packaging while rpm/apt is the real next-generation. That said, for games the security issues are basically zero (basically but not to 100%) since few games have open external ports or handle random files/data that you feed it like it is for applications.

lol, I've never seen rpm/deb described as 'next-generation'. I can kind of see it with rpm, but deb is something that deserves to be consigned to history as a terrible mistake that future generations should learn from.


Last edited by WorMzy on 29 July 2021 at 11:13 pm UTC
twinsonian Jul 29, 2021
Everyone has an opinion so here is mine.

I have used all three technologies quite a bit and personally I find Flatpak to be by far the best all around experience. The only con can be the initial install sizes. Flathub is nothing short of amazing and flatpaks just work.

Appimages are great too. I dont really have a complaint either way with them. I think they need more spotlight so users can actually understand them. The first time I used an appimage I was confused on how to actually uninstall the application since I didnt realize it wasnt actually installing anything. All in all I think appimages are great too. Its too bad they havent taken off.

My experience with snaps has been hit and miss most of the time with things not working quite right -- usually due to permission issues (snap doesnt have access to controller or many snaps requiring --classic). Also, since Martin Wimpress has left Ubuntu it *feels* like they are just stagnant. I don't have anything against snaps but I never use them unless forced on an unbuntu install.
PopeRigby Jul 30, 2021
Quoting: PublicNuisanceI don't have a horse in the race but here is an article worth reading as devil's advocate.

https://flatkill.org/2020/

Reponse from one of the Flatpak developers: https://theevilskeleton.frama.io/2021/02/11/response-to-flatkill-org.html


Last edited by PopeRigby on 30 July 2021 at 4:55 am UTC
superboybot Jul 30, 2021
I think Flatpak is fine (and to a lesser extent Snap, especially on distros that include it by default), but I don't really see the point unless it offers a package that isn't in your repo. AppImage is cool though, as a preservation method.

But other than that, what problem is it solving? It seems that some people use them for many (most?) installed packages. I find it a bit strange. For instance, why is Firefox even offered on Flathub? Are there distros that don't have Firefox in the repositories?
andythe_great Jul 30, 2021
I have some of my opinion to share as I have create some Flatpak packages and submit to Flathub and also maintain some packages on openSUSE.

Package Flatpak app once and distribute to any distro is the best thing ever. This avoid duplication of effort. Not even openSUSE and Fedora can share the same spec file (a file that contain build instructions) since they some time use difference RPM macros. Maintaining a package across many distros are very tedious.

I also like the fact that Flatpak apps don't need root permission to install. Very convenient.

Apps that have long list of dependencies are less likely to break. On Flatpak, I or the upstream dev can choose deps version that work well. Sure that it is possible to patch the package to fix it, but things get hard and tedious as there are more packages.


Also response to Flatkill.
https://theevilskeleton.frama.io/2021/02/11/response-to-flatkill-org.html
Eike Jul 30, 2021
View PC info
  • Supporter Plus
Quoting: WorMzylol, I've never seen rpm/deb described as 'next-generation'. I can kind of see it with rpm, but deb is something that deserves to be consigned to history as a terrible mistake that future generations should learn from.

IMHO, it's far better than what the 90% of desktops OS does. And even Microsoft found out, so they're working on a package manager lately...
Klaus Jul 30, 2021
Quoting: superboybotI think Flatpak is fine (and to a lesser extent Snap, especially on distros that include it by default), but I don't really see the point unless it offers a package that isn't in your repo. AppImage is cool though, as a preservation method.

But other than that, what problem is it solving? It seems that some people use them for many (most?) installed packages. I find it a bit strange. For instance, why is Firefox even offered on Flathub? Are there distros that don't have Firefox in the repositories?

For background, I am currently using Open Suse at work for software development, but have always returned to Windows on private devices due to a variety of annoyances any time I've used Linux.

One of them, and the only one that really applies for desktop PCs, is software distribution. Linux works pretty great, if all you need is in the repository. Until it isn't.

The most common case for me is needing one or two graphical programs in the most recent version due to a bug fix I need, so it doesn't help me that there is a package in the repository. I could use a rolling-release OS, but at work that might not be my choice, and even then I would sacrifice stability of the day-to-day work environment because I need one package to be more up-to-date.

Even if things are in the repository, I've found that sometimes they are just configured questionably. For instance with LyX, font packages were listed as "optional" dependencies, when their absence would actually, without any warning, cause weird glitches at runtime.

DEB/RPM Packages, if available, may be broken or at least incomplete for any given configuration. Often the only officially supported Linux is Ubuntu, on OpenSuse I often have to install things more manually, or fix things afterwards.

Additionally, adding non-repostitory software to the system has its risk. Installing OnlyOffice from a package left me with .so files that suddenly interfered with the build-and-run process.

By contrast, I'm never seeing similar issues on Windows. Software comes prepackaged as an installer, and the installer contains everything that's needed. (But sadly, Windows installers integrate Software too deeply into the system for my tastes.)

From a software developer view, these issues translate into supporting not "Windows and Linux" but "Windows and Ubuntu and OpenSuse and Arch and Debian and ...". From a distribution view, it means you need someone to support every little program you want running on your environment for your specific distribution, whether it is the company behind the software or a maintainer. Even Linus Torvalds complains about that.

As I understand, the application package formats try to solve these issues; Create a single package, and the package should be portable across all Linux systems, at least those running on compatible hardware architectures.

If desktop Linux is ever to compete with the install base of Windows, it needs to provide the conveniences that Windows-users take for granted.

The other part (mostly relevant for corporate environments) is that a natively or indistinguishable-from-native running version of Microsoft Office releases from the last ten years isn't optional. I tried with OnlyOffice and LibreOffice, but the moment your working with a customer who uses Microsoft Office, you will need it somehow, or the customer will be annoyed at you for breaking their documents; The only solution working properly here is a virtual machine with Windows and native MS Office.
Zlopez Jul 30, 2021
  • Supporter Plus
Quoting: superboybotI think Flatpak is fine (and to a lesser extent Snap, especially on distros that include it by default), but I don't really see the point unless it offers a package that isn't in your repo. AppImage is cool though, as a preservation method.

But other than that, what problem is it solving? It seems that some people use them for many (most?) installed packages. I find it a bit strange. For instance, why is Firefox even offered on Flathub? Are there distros that don't have Firefox in the repositories?

I'm personally running an ostree distribution, which discourages users to install anything by package manager that is outside the standard ostree image. The reason is that only the ostree is tested and works, but any package layered on top of it could cause potential issues. On the other hand it allows you to easily rollback any update and the updates are atomic, so you don't need to worry about package database corruption during update. This is really a newbie friendly distribution, although it's still in development and not everything is working as it should.

In this kind of distribution the Flatpak or similar solution is a must. The Flatpak in advance has sandboxing (although it's on the packager to set it correctly). For example I'm running Steam in Flatpak and it doesn't have access to anything outside the flatpak container it's running in (except for few media folders in home), so any game that has some tracking things inside is not allowed to get any info about what you do outside of Steam, even what operation system are you running. You can easily change those permissions by FlatSeal application, which is also flatpak.

And as Klaus above me wrote, the Flatpak solves the issue of too much different distributions by creating a unified way that works on any distro that has flatpak available.


Last edited by Zlopez on 30 July 2021 at 9:55 am UTC
superboybot Jul 30, 2021
Quoting: ZlopezThe Flatpak in advance has sandboxing (although it's on the packager to set it correctly). For example I'm running Steam in Flatpak and it doesn't have access to anything outside the flatpak container it's running in (except for few media folders in home), so any game that has some tracking things inside is not allowed to get any info about what you do outside of Steam, even what operation system are you running. You can easily change those permissions by FlatSeal application, which is also flatpak.

I can appreciate the advantages of this kind of sandboxing/isolation, but I want my software to be more interconnected, not less. For example, not long after I first switched to Linux, I installed some Snap packages. Later, I tried writing a script that, among other things, ran one of these packages using certain parameters. Trying to find the binary was a bit of a nightmare; it was obfuscated behind multiple folders and symlinks. If it had acted like any other package on the system, designed to play nicely with everything else, it would have been more user-friendly from my perspective.

Quoting: KlausFrom a software developer view, these issues translate into supporting not "Windows and Linux" but "Windows and Ubuntu and OpenSuse and Arch and Debian and ...". From a distribution view, it means you need someone to support every little program you want running on your environment for your specific distribution, whether it is the company behind the software or a maintainer. Even Linus Torvalds complains about that.

As I understand, the application package formats try to solve these issues; Create a single package, and the package should be portable across all Linux systems, at least those running on compatible hardware architectures.

If desktop Linux is ever to compete with the install base of Windows, it needs to provide the conveniences that Windows-users take for granted.

I understand the benefits from a development/distribution point of view, but that doesn't necessarily translate into utility or necessity from a user's perspective. I think there are situations where Flatpaks are the obvious choice, but in my opinion, that is much more the case when using a non-Arch-based distro.
Klaus Jul 30, 2021
Quoting: superboybotI can appreciate the advantages of this kind of sandboxing/isolation, but I want my software to be more interconnected, not less. For example, not long after I first switched to Linux, I installed some Snap packages. Later, I tried writing a script that, among other things, ran one of these packages using certain parameters. Trying to find the binary was a bit of a nightmare; it was obfuscated behind multiple folders and symlinks. If it had acted like any other package on the system, designed to play nicely with everything else, it would have been more user-friendly from my perspective.

I can relate to that. Microsoft introduced exactly that issue with its UWP apps. Forget about modding games...

With Flatpak I can't tell for lack of experience. But you'd assume that all programs would expose at least a "run program" shell interface to the system. And if they include multiple shell utilities, preferably all of them.

The existence of those shell interfaces is one of the major advantages I see in Linux software over Windows software, which is often "GUI only" or supplying very awkward command line interfaces. E.g. SpiderOak One, where the program is (at least on Windows) always run asynchronously, and command line tools cannot be invoked while the GUI is running.

It does however not invalidate the utility of the packaging format; It just means that there is an important aspect that hasn't been considered sufficiently. From what you tell, they apparently over-do the abstracting-away part of the package. That's also not exactly helpful for when you want to provide a useful bugreport...
Mr. Pinsky Jul 30, 2021
Quoting: superboybotI think Flatpak is fine (and to a lesser extent Snap, especially on distros that include it by default), but I don't really see the point unless it offers a package that isn't in your repo. AppImage is cool though, as a preservation method.

But other than that, what problem is it solving? It seems that some people use them for many (most?) installed packages. I find it a bit strange. For instance, why is Firefox even offered on Flathub? Are there distros that don't have Firefox in the repositories?

It is important to keep in mind that there are two separate use cases here.

1) There is the OS level. We are talking about kernels, system libraries, graphics drivers, desktop environment, file explorer etc. Traditional packaging (rpm/deb) packaging is absolutely the right way to go here. It is the tool to be used by OS developers to make sure that the system is compatible, just works, and can be updated without breaking stuff.

2) The other use case is users wanting to install "apps" from 3rd parties. The situation here is different because the developers of 3rd party apps are usually not well suited to create packages on the OS level (rpm/deb). In an ideal world, the 3rd party developers would make a release and then the OS developers would package this release and distribute it to the users of their OS immediately. But that is not feasible, as no OS developer can keep up with all the releases of apps. The reality is that 3rd party developers end up having the burden of package management, and it is obviously tedious for them if they have to provide many different packages in different formats for different (Linux) users. In addition, 3rd party developers are generally less trusted to provide security updates etc. This is where flatpak comes in: It provides a simple way for 3rd party developers to provide a package for all Linux users which is secure and (hopefully) just works. This is the best option specifically for those apps which are not already packaged by the OS developers.


Last edited by Mr. Pinsky on 30 July 2021 at 12:37 pm UTC
soulsource Jul 30, 2021
Quoting: ZlopezI think the flatpaks are really great (I'm using distro, that is made for use with flatpaks), but there is one issue with Flathub regarding games, the runtimes (shared libraries between flatpaks) are updated continuously so you still have the same issue like with current Linux OS, the libraries will be incompatible in a few years. ...

Libraries do not get incompatible by themselves. This always requires a conscious decision by the library's developers, and unless they are utterly incompetent, they will not do any ABI breaking changes without also changing the library soname and therefore allowing multiple versions of the library to be installed at the same time.

What happens with traditional packaging is that distributors at some point stop packaging outdated library versions.

I'd be curious about the policy at Flathub: Do they plan to remove outdated, unmaintained versions of libraries from future runtime versions, or are they committed to keep some ABI compatible version of each library present (like Valve does in the Steam Runtime)?
PublicNuisance Jul 30, 2021
Quoting: PopeRigby
Quoting: PublicNuisanceI don't have a horse in the race but here is an article worth reading as devil's advocate.

https://flatkill.org/2020/

Reponse from one of the Flatpak developers: https://theevilskeleton.frama.io/2021/02/11/response-to-flatkill-org.html

Thanks for the link. I read through it and came away with mixed feelings. They basically said that they agree with much of what the original article had said but then tried to accuse them of inciting fear in the Linux community. If much of what they had said was indeed correct then I wouldn't care about what it incited, I would get to work on fixing those issues. On the flip side they do give some valuable advice on how to mitigate some of the issues as well as point out that no software is ever 100% secure which I agree with.
soulsource Jul 30, 2021
Quoting: KlausDEB/RPM Packages, if available, may be broken or at least incomplete for any given configuration. Often the only officially supported Linux is Ubuntu, on OpenSuse I often have to install things more manually, or fix things afterwards.

Additionally, adding non-repostitory software to the system has its risk. Installing OnlyOffice from a package left me with .so files that suddenly interfered with the build-and-run process.

By contrast, I'm never seeing similar issues on Windows. Software comes prepackaged as an installer, and the installer contains everything that's needed. (But sadly, Windows installers integrate Software too deeply into the system for my tastes.)

First thing first: Please do not take this as an actual suggestion. I just want to highlight that there's another way to package applications for Windows, Linux, etc.
Namely: portable packages. So, basically what most Windows installers do anyhow, but without any deep integration into the OS. Just bundling the program's executable and its dependencies in an archive file that users can extract to and run from wherever they like. Or go even further and just use static linking. I mean, on Windows most programs bundle their own copy of shared libraries anyhow, so what's the advantage over just statically linking those in? Actually the Unity Player does that, at least on Linux (for good or worse - having SDL2 statically linked is causing troubles for modders who want to talk to SDL2 from their .Net code...).
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
The comments on this article are closed.