Snap, Flatpak and AppImage
The bundled, sandboxed package formats: what each ships, how they update and confine apps, and why they suit desktops better than servers, with exceptions.
Snap, Flatpak and AppImage
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- Native packages share one set of libraries across the system and are built per distribution. Universal formats bundle an app with its dependencies so one build runs on many distributions and releases.
- Snap (Canonical) mounts each app as a read-only squashfs image, confines it, and auto-refreshes from the central Snap Store, by default four times a day. snap refresh --hold postpones updates.
- Flatpak is built for desktop apps: shared runtimes, a bubblewrap sandbox with permissions and portals, and decentralised remotes, with Flathub the main one.
- AppImage is one executable file per app with no installer, no daemon, no sandbox and no automatic updates. It needs FUSE to mount itself, or can be extracted.
- On servers, prefer native packages or containers. Snaps are the notable exception on Ubuntu, where some server software such as LXD is distributed that way.
The problem with one shared library set
A native package is built for one distribution release. The nginx .deb from the packages lesson depends on Debian 13’s exact versions of libssl, libpcre2 and libc6. That is a strength on a server: one copy of OpenSSL, patched once by the distribution, fixes every program that uses it.
It is a weakness for application developers. To ship a desktop app to Linux users, they would have to build and test packages for Debian, Ubuntu LTS and interim releases, Fedora, openSUSE and Arch, each with different library versions, and keep doing it. Users on a stable distribution get old versions of fast-moving apps for years.
Universal formats turn that around: bundle the app with the libraries it needs, so one build runs almost anywhere. Three won wide use.
Snap
Snap is Canonical’s format. A snap is a compressed, read-only squashfs image that the snapd daemon mounts and runs, with its own copies of dependencies. Snaps come from one central store, snapcraft.io. They are confined by default: strict confinement limits what the app can touch through AppArmor and other kernel features, and “interfaces” grant access to things like the network or home directory. Snaps can also package services and command-line tools, not just desktop apps.
The operational feature to know is automatic refresh. Canonical’s snap documentation says “by default, the snap system is scheduled to refresh four times per day”. That is good for security and surprising on a server, where an update can land outside a change window. The same docs describe snap refresh --hold, which postpones updates for one snap or all of them, “either indefinitely or for a specified period of time”, and the refresh.timer system option, which confines refreshes to set windows, for example sudo snap set system refresh.timer=4:00-7:00.
Flatpak
Flatpak describes itself as “a framework for distributing desktop applications across various Linux distributions”, and its documentation is explicit: “In general, Flatpak is best suited for desktop applications.” Apps build against shared runtimes, “an integrated environment providing basic utilities needed for a Flatpak application to work”, such as the GNOME or KDE runtime, so ten apps on the same runtime share one copy. Each app runs in a sandbox built with bubblewrap; Flatpak’s docs say one main goal is “isolating applications from one another and limiting their access to the host environment”. Apps ask for extra access through declared permissions and through portals, system dialogs such as a file chooser that hand the app only the file the user picked.
Distribution is decentralised: anyone can host a Flatpak repository, called a remote. In practice most apps come from Flathub. Fedora and several other desktop distributions now offer Flatpak as the default way to install desktop apps.
AppImage
AppImage is the simplest. Its documentation states: “Every AppImage is a regular file, and every AppImage contains exactly one app with all its dependencies.” Download it, mark it executable, run it. No installation, no root, no daemon. It is a filesystem image with a small runtime in front, which mounts itself when started; the docs note “AppImages require a Linux technology called Filesystem in Userspace (or short FUSE)”. On a system without FUSE 2, install libfuse2 (renamed libfuse2t64 in Ubuntu 24.04, per the docs), or fall back to --appimage-extract, which the docs call “pretty expensive”.
What AppImage does not give you: no sandbox by default, no central updates, no record in any package database. Each file is updated, or not, by hand.
Desktops versus servers
The trade-off looks different depending on the machine.
On a desktop, bundled formats are a clear win for apps: fresh versions on a stable base, a sandbox around a browser or chat client, and one build for every distribution. The cost is disk space for duplicated libraries and slower start-up for some snaps.
On a server, the case is weaker:
- The distribution’s packages already provide stable, security-patched server software, and configuration management tools expect them.
- Bundled libraries mean a library vulnerability is fixed only when each publisher rebuilds, not by one
apt upgrade. - Containers, covered in the devops lesson what a container really is, already solve “ship my app with its dependencies” for services, with better tooling for networks, logs and orchestration.
The exception is Ubuntu, where Canonical ships some server software primarily as snaps. LXD is the best-known example, and Certbot’s own instructions have long recommended its snap. If you run those, plan for snap refresh windows like any other change.
About the video
The embed is ExplainingComputers’s “Linux Packaging Formats: Deb, RPM, Flatpak, Snap & AppImage”, August 2026, clipped from “Native & Universal Formats” through “Which to Choose?” (about 10 minutes). Christopher Barnatt explains why universal formats exist and demonstrates Flatpak, Snap and AppImage side by side on a desktop. The video’s first chapter, on Deb and RPM, is the embed for the packages lesson. It is desktop-oriented and does not discuss servers, refresh control or FUSE, which this lesson adds. I judged it from the chapters and description, and English from its English auto-caption track. The Linux Experiment’s twenty-minute comparison and Cameron Knauff’s 2026 argument for why Flatpak won are in deeper.
Nothing was run for this lesson. Statements are from the Flatpak and AppImage documentation and Canonical’s snap update documentation as quoted in search results, checked 2026-11-28. The claims about LXD and Certbot being distributed as snaps are from general knowledge and were not re-checked.
Check yourself
Why can one Flatpak or Snap run on Debian 12, Fedora 45 and Ubuntu 26.04 when a .deb cannot?
It carries its own libraries, in the app bundle or a shared runtime, instead of depending on the versions each distribution ships.
What is the operational risk of a snap-packaged service on a server, and how do you control it?
snapd refreshes snaps automatically, by default four times a day, which can restart or change a service outside your maintenance window. Use snap refresh --hold or set refresh.timer to a window.
An AppImage fails with an error about FUSE on a minimal server. What are the options?
Install the FUSE 2 library the AppImage needs (libfuse2, or libfuse2t64 on Ubuntu 24.04), or run it with --appimage-extract and execute the extracted contents.
What does a bundled format cost compared with a native package?
Disk space and memory for duplicate libraries, security fixes that depend on each app's publisher rebuilding rather than one distribution update, and less integration with the rest of the system.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.