How To Install flatpak on Debian 11

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

Introduction

In this tutorial we learn how to install flatpak on Debian 11.

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.

There are three methods to install flatpak on Debian 11. 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 Debian. 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 Debian 11

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 Debian 11, we can use the command below:

sudo apt-get -y autoremove flatpak

Remove flatpak Configurations and Data

To remove flatpak configuration and data from Debian 11 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

Dependencies

flatpak have the following dependencies:

References

Summary

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