How To Install flatpak on Ubuntu 20.04

In this tutorial we learn how to install flatpak on Ubuntu 20.04. flatpak is Application deployment framework for desktop apps Application deployment framework for desktop apps

Introduction

In this tutorial we learn how to install flatpak on Ubuntu 20.04.

What is flatpak

flatpak is:

Flatpak installs, manages and runs sandboxed desktop application bundles. Application bundles run partially isolated from the wider system, using containerization techniques such as namespaces to prevent direct access to system resources. Resources from outside the sandbox can be accessed via “portal” services, which are responsible for access control; for example, the Documents portal displays an “Open” dialog outside the sandbox, then allows the application to access only the selected file.

Each application uses a specified “runtime”, or set of libraries, which is available as /usr inside its sandbox. This can be used to run application bundles with multiple, potentially incompatible sets of dependencies within the same desktop environment.

This package contains the services and executables needed to install and launch sandboxed applications, and the portal services needed to provide limited access to resources outside the sandbox.

Package: flatpak Architecture: amd64 Version: 1.6.3-1 Priority: optional Section: universe/admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Utopia Maintenance Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 5576 Depends: adduser, bubblewrap (>= 0.4.0), xdg-dbus-proxy (>= 0.1.0), libappstream-glib8 (>= 0.6.1), libarchive13 (>= 3.0.4), libc6 (>= 2.28), libdconf1 (>= 0.26.0), libfuse2 (>= 2.9.2), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.57.2), libgpgme11 (>= 1.1.8), libjson-glib-1.0-0 (>= 1.2.0), libostree-1-1 (>= 2019.6), libpolkit-agent-1-0 (>= 0.105), libpolkit-gobject-1-0 (>= 0.101), libseccomp2 (>= 1.0.1), libsoup2.4-1 (>= 2.41.90), libsystemd0, libxau6, libxml2 (>= 2.7.4) Recommends: desktop-file-utils, hicolor-icon-theme, gtk-update-icon-cache, libpam-systemd, p11-kit, policykit-1, shared-mime-info, xdg-desktop-portal (>= 1.6), xdg-desktop-portal-gtk (>= 1.6) | xdg-desktop-portal-backend Suggests: avahi-daemon Conflicts: xdg-app Replaces: xdg-app Filename: pool/universe/f/flatpak/flatpak_1.6.3-1_amd64.deb Size: 1065872 MD5sum: 16877252c310580786e24e181e147437 SHA1: 1f1ba5fa25e5bb9463cc9b731e037b02942084c7 SHA256: f630db86cd36dd923ab3a6ba886d818d3d08e2b6ade7333ab31e82994a1cbf1d Homepage: https://flatpak.org/ Description-en: Application deployment framework for desktop apps Flatpak installs, manages and runs sandboxed desktop application bundles. Application bundles run partially isolated from the wider system, using containerization techniques such as namespaces to prevent direct access to system resources. Resources from outside the sandbox can be accessed via “portal” services, which are responsible for access control; for example, the Documents portal displays an “Open” dialog outside the sandbox, then allows the application to access only the selected file.

Each application uses a specified “runtime”, or set of libraries, which is available as /usr inside its sandbox. This can be used to run application bundles with multiple, potentially incompatible sets of dependencies within the same desktop environment.

This package contains the services and executables needed to install and launch sandboxed applications, and the portal services needed to provide limited access to resources outside the sandbox.

There are three methods to install flatpak on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install flatpak Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install flatpak using apt-get by running the following command:

sudo apt-get -y install flatpak

Install flatpak Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install flatpak using apt by running the following command:

sudo apt -y install flatpak

Install flatpak Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install flatpak using aptitude by running the following command:

sudo aptitude -y install flatpak

How To Uninstall flatpak on Ubuntu 20.04

To uninstall only the flatpak package we can use the following command:

sudo apt-get remove flatpak

Uninstall flatpak And Its Dependencies

To uninstall flatpak and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove flatpak

Remove flatpak Configurations and Data

To remove flatpak configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge flatpak

Remove flatpak configuration, data, and all of its dependencies

We can use the following command to remove flatpak configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge flatpak

References

Summary

In this tutorial we learn how to install flatpak package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.