Do Flatpak and pacman share dependencies on Arch Linux?
Asked by
MellowCedar47
I'm using Arch and would prefer to avoid the AUR when an application isn't available in the official repositories, so I sometimes install it through Flatpak. 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 package download libraries that are already installed for Firefox?
Answers
Flatpak runtimes are designed to be distribution-independent, which is why the same application can run across different Linux distributions. A Flatpak may therefore download libraries that are already present on your system, but it normally downloads them into Flatpakโs own storage rather than installing duplicate system packages. Firefox being installed through pacman wonโt usually satisfy a Flatpak applicationโs dependencies.
Reply to this answer
They use separate dependency systems. pacman installs packages that integrate with your Arch system and can share libraries with other native applications. Flatpak apps run in a more isolated environment and use their own runtimes, so they generally donโt reuse the libraries installed by pacman. That does mean some components may be stored separately, although multiple Flatpak apps can share the same Flatpak runtime.
Reply to this answer
If youโre avoiding the AUR because youโre concerned about security, keep in mind that Flatpak isnโt automatically free from things you should inspect. You can review an AUR packageโs PKGBUILD, while Flatpak applications have manifests and permissions worth checking. For many people, using a reputable AUR package and reviewing what it does is reasonable, but Flatpak is still a good choice when you want stronger isolation and portability.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions