Flatpak installs applications isolated from the system, with their dependencies bundled, from a repository shared by every distribution: Flathub. Where dnf or apt provide the version validated by the distribution, Flatpak lets you install the latest version of an application without touching the system libraries, each application running in a sandbox. This guide shows how to add Flathub, then search for, inspect, install and update an application. For intermediate administrators, on every distribution. Two objectives of the RHCSA exam (EX200) deal with Flatpak: configuring access to repositories, installing and removing applications. Outputs recorded on 30 September 2026 on AlmaLinux 10, with Flatpak 1.16.0.
What you will learn
- The Flatpak model: sandbox and shared runtimes.
- Install Flatpak and add the Flathub repository.
- Search for and inspect an application before installing it.
- Install, list and update applications.
- When to prefer Flatpak over
dnf/apt.
The Flatpak model
A classic package (dnf, apt) relies on the system libraries: its version therefore depends on that of the distribution. Flatpak reverses the model. Each application bundles everything it needs and runs isolated from the rest of the system. It no longer depends on the distribution, only on a runtime, a common base (for instance org.gnome.Platform) that several applications share to avoid duplicating everything.
In practice, installing an application also pulls its runtime the first time, then the following applications on the same runtime install in a few megabytes. Flatpak works in system mode (for everyone) or user mode (--user, without privileges).
Install Flatpak and add Flathub
Install the package, then declare the Flathub repository, the reference app store.
sudo dnf install flatpaksudo apt updatesudo apt install flatpaksudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepoflatpak remotes -dThe --if-not-exists option makes the command replayable without error: run a second time, it exits with 0 without changing anything. flatpak remotes confirms that flathub is configured. Applications will now be searched for and installed from this repository.
Search for and inspect an application
flatpak search queries Flathub by keyword and returns the identifier of each application (in the form org.inkscape.Inkscape), which is then used to install it:
flatpak search inkscapeInkscape Vector Graphics Editor org.inkscape.Inkscape 1.4.4 stable flathubGraphs Plot and manipulate data se.sjoerd.Graphs 2.0.7 stable flathubBefore installing, flatpak remote-info shows the size and the required runtime, without downloading anything:
flatpak remote-info flathub org.gnome.Calculator ID: org.gnome.Calculator Download: 1.9 MB Installed: 5.0 MB Runtime: org.gnome.Platform/x86_64/51The application itself weighs a few megabytes; it is the runtime, pulled only once, that makes up most of the first installation.
Install, list and update
flatpak install downloads the application and, automatically, the runtime it depends on:
sudo flatpak install --noninteractive flathub org.gnome.CalculatorThe output shows the cascading installation: the runtime, its graphics extensions, then the application.
Installing runtime/org.gnome.Platform/x86_64/51Installing app/org.gnome.Calculator/x86_64/stableflatpak list lists what is installed; the --runtime option isolates the shared runtimes:
flatpak listflatpak list --runtimeUpdating every application and runtime takes one command, to run regularly:
flatpak updateTo remove an application, flatpak uninstall org.gnome.Calculator; flatpak uninstall --unused then cleans up the runtimes that no application uses any more.
Launch an application
An installed application is launched by its identifier:
flatpak run org.gnome.CalculatorFlatpak or system package: which one to choose
Flatpak and the distribution's manager do not target the same software. The choice depends on the nature of the need.
| Need | Tool |
|---|---|
Kernel, services, sshd, drivers, command-line system tools | dnf/apt |
| Recent desktop application, or one missing from the official repositories | Flatpak (Flathub) |
| Version validated and integrated into the distribution | dnf/apt |
| Same application, identical across several distributions | Flatpak |
| Server without a graphical interface | dnf/apt (Flatpak's run would be useless) |
On a RHEL server, the rule is simple: system software goes through dnf, and Flatpak only comes in for desktop use. The RHCSA exam mostly checks that you know how to add Flathub and install or remove a Flatpak application, not how to make it the server's main tool.
Key points
- Flatpak installs applications isolated from the system, with their dependencies, from Flathub.
- A shared runtime (e.g.
org.gnome.Platform) serves as a common base: the first installation is heavy, the following ones light. - The cycle fits in five commands:
remote-add,search,install,list,update. flatpak remote-infoinspects size and runtime before installing;uninstall --unusedcleans up orphan runtimes.- Flatpak complements
dnf/aptfor desktop applications; it does not manage the core of the system.
Knowledge check
Check that the essentials of this guide are acquired. The questions only cover what has just been explained here.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
Continue the course: Manage packages with APK on Alpine Linux
A new full quiz with random questions
Work again only on the questions you missed