How To Install flatpak on Kali Linux
Introduction
In this tutorial we learn how to install flatpak
on Kali Linux.
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 Kali Linux. 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.
After updating apt database, We can install flatpak
using apt-get
by running the following command:
Install flatpak Using apt
Update apt database with apt
using the following command.
After updating apt database, We can install flatpak
using apt
by running the following command:
Install flatpak Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
After updating apt database, We can install flatpak
using aptitude
by running the following command:
How To Uninstall flatpak on Kali Linux
To uninstall only the flatpak
package we can use the following command:
Uninstall flatpak And Its Dependencies
To uninstall flatpak
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
Remove flatpak Configurations and Data
To remove flatpak
configuration and data from Kali Linux we can use the following command:
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:
Dependencies
flatpak have the following dependencies:
- adduser
- bubblewrap
- dbus
- xdg-dbus-proxy
- libappstream-glib8
- libarchive13
- libc6
- libdconf1
- libfuse2
- libgdk-pixbuf-2.0-0
- libglib2.0-0
- libgpgme11
- libjson-glib-1.0-0
- libmalcontent-0-0
- libostree-1-1
- libpolkit-agent-1-0
- libpolkit-gobject-1-0
- libseccomp2
- libsoup2.4-1
- libsystemd0
- libxau6
References
Summary
In this tutorial we learn how to install flatpak
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.