Software:Flatpak

From HandWiki
Short description: Linux software deployment utility
Flatpak
Flatpak Logo.svg
Flatpak 1.12.7 install screenshot.png
Example of installing software with Flatpak
Original author(s)Alexander Larsson
Developer(s)Flatpak Team[1]
Initial releaseSeptember 2015; 8 years ago (2015-09)[2]
Written inC
Operating systemLinux
LicenseLGPL-2.1-or-later[3]
Websiteflatpak.org

Flatpak, formerly known as xdg-app,[4] is a utility for software deployment and package management for Linux. It is advertised as offering a sandbox environment in which users can run application software in isolation from the rest of the system.[5][6]

Features

Applications using Flatpak need permissions to have access to resources such as Bluetooth, sound (with PulseAudio), network, and files. These permissions are configured by the maintainer of the Flatpak and can be added or removed by users on their system.[7][8]

Another key feature of Flatpak is that it allows application developers to directly provide updates to users without going through distributions, and without having to package and test the application separately for each distribution.[9]

Flathub, a repository (or remote source in the Flatpak terminology) located at flathub.org, has become the de facto standard for getting applications packaged with Flatpak.[10] Packages are added to it by both the Flathub administrators and the developers of the programs themselves (though the admins have stated their preference for developer-submitted apps).[11] Although Flathub is the de facto source for applications packaged with Flatpak, it is possible to host a Flatpak repository that is independent of Flathub.[12][13][14]

Flatpak runs in a sandbox (which provides a separate, ABI-stable version of all common system libraries), and that means that it will always use more space on the system than common native packages. However, Flatpak uses OSTree as its backend which can deduplicate matching files. This means that the first install of a Flatpak application will always take up more space at first, but will be more efficient as the user installs more Flatpak packages.[15]

Support

Theoretically, Flatpak apps can be installed on any existing and future Linux distribution, including those installed with the Windows Subsystem for Linux compatibility layer, so long as bubblewrap and OSTree are available.

It can also be used on Linux kernel-based systems like ChromeOS.[16]

See also

References

  1. "About". https://flatpak.org/about/. 
  2. "Flatpak's History". https://github.com/flatpak/flatpak/wiki/Flatpak%27s-History. 
  3. "COPYING". 31 March 2015. https://github.com/flatpak/flatpak/blob/master/COPYING. 
  4. Larsson, Alexander (9 May 2016). "Renamed to flatpak in git". https://lists.freedesktop.org/archives/xdg-app/2016-May/000204.html. 
  5. Larsson, Alexander (29 April 2016). "Using bubblewrap in xdg-app". GNOME. https://blogs.gnome.org/alexl/2016/04/29/using-bubblewrap-in-xdg-app/. 
  6. Willis, Nathan (2015-01-21). "GNOME and application sandboxing revisited". LWN. https://lwn.net/Articles/630216/. 
  7. "Sandbox Permissions" (in en-US). https://docs.flatpak.org/en/latest/sandbox-permissions.html. 
  8. "flatpak-run" (in en-US). https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-run. 
  9. Larsson, Alex. "Kick-starting the revolution 1.0". https://blogs.gnome.org/alexl/2018/08/21/kick-starting-the-revolution-1-0/. 
  10. "7 Flatpak Apps You Can Install Right Now from Flathub" (in en-US). 2017-07-20. https://www.omgubuntu.co.uk/2017/07/7-flatpak-apps-can-install-right-now-flathub. 
  11. GitHub - flathub/flathub: Pull requests for new applications to be added., Flathub, 2019-05-24, https://github.com/flathub/flathub, retrieved 2019-05-29 
  12. "List remotes" (in en-US). https://docs.flatpak.org/en/latest/using-flatpak.html#list-remotes. 
  13. "Hosting a Repository". https://docs.flatpak.org/en/latest/hosting-a-repository.html. 
  14. "Reasons to use Flatpak" (in en-US). https://docs.flatpak.org/en/latest/introduction.html#reasons-to-use-flatpak. 
  15. TheEvilSkeleton (2022-05-16). "Response to "Flatpak Is Not the Future"" (in en). https://theevilskeleton.gitlab.io/2022/05/16/response-to-flatpak-is-not-the-future.html. 
  16. "Chrome OS Quick Setup". https://flatpak.org/setup/Chrome%20OS.