Universal application distribution
The move toward universal packaging addresses historical frustrations where users had to deal with endless broken dependencies, the need to compile applications from source code, the requirement to maintain the Linux system itself, or the struggle with varied package managers. Flatpak provides a universal application package format that works across all Linux distributions. Developers create one distribution package to reach all users, regardless of whether the system uses Ubuntu or another distribution. This format first appeared in 2015 as xdg-app. Because Flatpak decouples the core operating system from its applications, users who prefer to stick with a stable version of their Linux distribution can still run the latest software versions without waiting for their distro to package them. Developers maintain full control over their software and do not rely on a specific distribution to package or distribute the code correctly. Flatpak uses shared runtimes for common dependencies and can bundle additional app-specific libraries when necessary.
Flatpak dominates the market for universal packaging despite competition from Canonical’s Snap and the macOS-like AppImage. Snap is not included in Ubuntu by default, while many apps are now only available as Flatpaks via the Flathub repository. If an Ubuntu user finds an application in Snap format, there is no reason to avoid it. AppImage functions closer to macOS ".app" packages. Unlike Flatpak, AppImage does not provide sandboxing by default and duplicates libraries between applications instead of using shared runtimes.
| Feature | Flatpak | Snap | AppImage |
|---|---|---|---|
| Sandboxed | Yes | Yes | No |
| Shared Runtimes | Yes | Yes | No |
Technical constraints and usage
Sandboxing creates friction for some users when applications cannot access specific hardware or files. For example, a user installing Steam as a Flatpak might find the application cannot see games on an SSD until the user grants explicit permission. Flatseal helps manage these permission issues. While Flatpak apps take more space because they bundle dependencies, the system uses storage deduplication and automatic pruning of unused runtimes to offset this impact. Immutable distributions like SteamOS recommend Flatpaks for applications because they function as complete images.
Flatpak interacts with the kernel and other components in a way that is generally safer, although the format is not inherently more secure. A user might need to perform a one-off installation of Flatpak and add the Flathub repository to their computer if their distribution does not ship with support included. The format makes it easy for developers to distribute their own packages directly to users. This capability allows developers to provide the latest software versions directly to mainstream users.
