GeekDas
••6 min read
GeekdasGeekdas

Flatpak vs APT (2026): Which Should You Use on Linux?

Flatpak vs APT (2026): Which Should You Use on Linux?

Short answer: use APT for system tools, command-line utilities, servers and anything that should be tightly integrated with your OS. Use Flatpak for desktop apps when you want the newest version, or want the app isolated ("sandboxed") from the rest of your system. Most people end up using both side by side.

Which should you pick?

If you want...

Pick

A server package (Nginx, PostgreSQL, Redis)

APT

A command-line tool or a development library

APT

The newest version of a desktop app (GIMP, Blender, OBS)

Flatpak

An app that cannot see your whole home folder by default

Flatpak

The same app version on Ubuntu, Fedora and Mint

Flatpak

The smallest possible disk footprint for one app

APT

Flatpak vs APT in one minute

If you run Ubuntu, Debian, Linux Mint or Pop!_OS, you have probably installed software two different ways without thinking about it. Sometimes it is sudo apt install something. Sometimes it is clicking "Install" in a software center that quietly pulled down a Flatpak instead. Both get an app onto your system, but they work in almost opposite ways.

APT is the traditional Debian package manager. It is fast, deeply integrated with the OS, and relies on the shared libraries already installed on your machine.

Flatpak is a newer, sandboxed packaging format. "Sandboxed" means the app runs in an isolated environment with limited access to the rest of your system, much like a phone app cannot freely read another app's files. Flatpak apps bring most of their dependencies with them (in shared "runtimes") instead of relying on your system's libraries.

Neither is universally better. They solve different problems, and knowing which one to reach for saves disk space, update headaches and the occasional broken dependency chain.

Flatpak vs APT: comparison at a glance

Aspect

APT

Flatpak

Sandboxing

None, full system access

Yes, by default

Dependency handling

Shared system libraries

Bundled runtime (shared between Flatpak apps)

App freshness

Tied to your distro release

Usually the latest upstream version

Disk usage (single app)

Lower

Higher at first, lower per extra app

Cross-distro consistency

Varies by distro and version

Same app everywhere

Update command

sudo apt upgrade

flatpak update

Where apps come from

Distro repositories

Flathub (and other remotes)

Typical use

System tools, servers, CLI utilities

Desktop GUI apps, untrusted software

How to install and use Flatpak and APT

Using APT

APT ships by default on every Debian-based distribution, so there is nothing to set up:

sudo apt update
sudo apt install <package-name>
sudo apt remove <package-name>

apt update refreshes the local package index from your configured repositories (see what happens during apt update on Ubuntu). apt install then downloads the package and any missing shared dependencies from those same repositories.

Using Flatpak

Flatpak is not always preinstalled. On Ubuntu:

sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak   # optional, GUI integration

Then add the Flathub repository, which hosts the vast majority of available Flatpaks:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Install and run an app:

flatpak install flathub org.gimp.GIMP
flatpak run org.gimp.GIMP

Restart your session after the first Flatpak setup so its apps show up in your application menu.

Flatpak vs APT: real commands and examples

Installing GIMP with APT

sudo apt install gimp

This installs GIMP plus whatever versions of its shared libraries (GTK, image codecs and so on) your distro currently ships. The GIMP version is tied to your OS release, so an older release means an older GIMP.

Installing GIMP with Flatpak

flatpak install flathub org.gimp.GIMP

This installs GIMP together with its own runtime, sandboxed from the rest of the system. It is usually newer than what your distro repositories carry, however old your OS release is.

Checking disk usage

flatpak list --runtime
du -sh /var/lib/flatpak

The first Flatpak app on a fresh system feels heavy because it also downloads a shared runtime, a common set of libraries such as the GNOME or Freedesktop platform. Every later app that uses the same runtime reuses it, so the real cost per app drops quickly after the first install.

Updating everything

sudo apt update && sudo apt upgrade   # system and APT-installed packages
flatpak update                        # Flatpak apps and runtimes

These are two separate update commands. Forgetting the second one is the most common mistake (see below).

Security: sandboxing in practice

An APT-installed app runs with the same permissions as you. If it is compromised, it can read your home folder, your SSH keys and your browser data.

A Flatpak app starts with limited access. It sees its own data folder and only the files, devices and services you allow. You can inspect and change its permissions:

flatpak info --show-permissions org.gimp.GIMP
flatpak override --user --filesystem=~/Pictures org.gimp.GIMP

Sandboxing is not a guarantee. Some Flatpaks request broad access (for example the whole home folder), so check what an app asks for before you rely on the sandbox. The Flatpak best practices guide covers this in detail.

Can you use Flatpak and APT together?

Yes, and most desktops do. A sensible split:

  • APT for the base system, command-line tools, languages, compilers, databases and server software.

  • Flatpak for desktop apps such as GIMP, Blender, OBS Studio or LibreOffice where you want recent versions.

Avoid installing the same app through both, or you end up with two binaries, two config folders and a confusing app menu.

Common mistakes

  • Assuming apt upgrade also updates Flatpak apps. It does not. The two systems are independent, so a Flatpak app can go months without updates if you only run apt upgrade.

  • Installing the same app through both APT and Flatpak. You get two copies and two sets of settings.

  • Expecting a Flatpak app to see everything. Because of sandboxing, it may not pick up your theme or reach files outside its allowed folders. Grant access with flatpak override or the Flatseal app.

  • Judging Flatpak by the first download. The first runtime looks big. Later apps sharing that runtime are much smaller.

  • Assuming APT always has the latest version. Debian-based distros favour stability, so APT versions can lag upstream by months or years, especially on LTS releases.

Pros and cons

APT

  • Deep OS integration: themes, file access and system services work without extra setup

  • No duplicated dependencies, so a smaller footprint per app

  • Fast installs, since only the app and any missing libraries are downloaded

  • Mature dependency resolution built over decades

  • Cons: apps can be old on LTS releases, and no sandbox

Flatpak

  • Sandboxed by default, which limits the damage from a misbehaving app

  • Same package version on every distro

  • Newer apps without waiting for your next OS release

  • Several versions of an app can live side by side

  • Cons: larger first install, separate update command, some apps need permission tweaks

Conclusion

APT and Flatpak are tools for different jobs. Use APT for lightweight, system-level software such as CLI tools and server software. Use Flatpak when you want the latest version of a desktop app, want it sandboxed, or need identical behaviour across distros. Knowing which one an app came from, and remembering to update both, is the real skill here.

Comments

Leave a comment

Loading comments...

Frequently Asked Questions

Is Flatpak better than APT?
Neither is better overall. APT is better for system software, servers and command-line tools because it is lean and integrated with the OS. Flatpak is better for desktop apps when you want newer versions and sandboxing. Most people use both.
Does apt upgrade update Flatpak apps?
No. APT and Flatpak are separate systems. sudo apt upgrade updates APT-installed packages only. To update Flatpak apps and runtimes, run flatpak update. Many people run both commands together when they update their system.
Is Flatpak safer than APT?
Flatpak adds a sandbox, so an app only sees what it is allowed to. That limits damage if an app is compromised. APT packages come from verified distro repositories but run with your full permissions. The sandbox is only as strict as the permissions the app requests.
Does Flatpak use more disk space than APT?
Usually yes for the first app, because it downloads a shared runtime. After that, apps using the same runtime share it, so the extra cost per app falls. Over many apps the difference is smaller than people expect, and you can free space with flatpak uninstall --unused.
Can I use Flatpak and APT on the same system?
Yes. They are independent and work side by side on Ubuntu, Debian and Linux Mint. Use APT for system tools and Flatpak for desktop apps. Just avoid installing the same app through both, which creates duplicate copies and confusing menu entries.

Related Articles