Do Flatpak Apps Share Dependencies with Pacman Packages?
Asked by
MellowPine42
I'm using Arch and prefer to avoid the AUR when possible, so I install software through Flatpak if it isn't available in the official repositories. For example, I'm considering installing Zen Browser even though Firefox is already installed. Do Flatpak and pacman resolve dependencies in the same way, or could the Flatpak app download and store libraries that are already installed on my system for Firefox?
Answers
If youโre avoiding the AUR because youโre worried about security, remember that Flatpak manifests also deserve some review. AUR packages arenโt automatically unsafe; you can inspect a PKGBUILD to see what it downloads and which commands it runs. For Zen Browser specifically, using a reputable package source and checking its build instructions is more important than assuming one format is always safer.
Reply to this answer
Flatpak runtimes are separate from your distributionโs packages and are designed to work across different Linux distributions. As a result, a Flatpak may download its own runtime or other libraries even when similar versions are already installed through pacman. Multiple Flatpak apps can share the same Flatpak runtime, though, so everything isnโt necessarily duplicated for every app.
Reply to this answer
They handle dependencies very differently. Pacman installs and shares system packages, while Flatpak apps run in a more isolated environment and use Flatpak runtimes. That means a Flatpak generally wonโt reuse the libraries installed by pacman for Firefox.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions