How to add Flatpak support to your Linux distribution?

Flatpak

We've mentioned applications and how to install them using this technology on several occasions on this blog . That's why today we're going to share with you how to add this support to your systems.

This entry is especially aimed at Linux novices who still have doubts about how to add support to our system, as well as how to install, run, and even remove applications.

Before we begin with the methods for adding Flatpak to our systems, it is important to understand a little about the concept of it.

Flatpak, known as xdg-app until May 2016, is a utility for software deployment, package management, and application virtualization for Linux desktop environments.

The utility provides a process isolation environment called Bubblewrap , in which users can run applications isolated from the rest of the system.

Applications using Flatpak need user permission to control hardware devices or access user files.

FlatPak installation on different Linux distributions

Below, we share with you how to add Flatpak support to your system with a simple command.

The only thing we will have to do is open a terminal on our system and execute the following command according to our Linux distribution.

How to install Flatpak on Arch Linux and derivatives?

In the case of Arch Linux, Manjaro, Antergos or any distribution derived from Arch Linux we add it with:

sudo pacman -S flatpak

How to install Flatpak on Fedora and derivatives?

If you are a user of Fedora, Korora, Mageia or any system derived from Fedora, you can add Flatpak support to your system with the following command:

sudo dnf install flatpak

How to install Flatpak on openSUSE?

If you are using any version of openSUSE, you can add Flatpak support with the following command:

sudo zypper install flatpak

How to install Flatpak on Debian, Ubuntu and derivatives?

In the case of those who are users of Debian, Ubuntu, Linux Mint and systems derived from these, we can add the support with the following command:

sudo apt install flatpak

If you are an Ubuntu 16.04 LTS user or a system derived from this version, and if you are an Elementary OS user, you must add the following repository using the following commands:

sudo apt install software-properties-common --no-install-recommends

We add the repository with:

sudo add-apt-repository ppa:alexlarsson/Flatpak

We update the list of packages with:

sudo apt update

Finally we install with:

sudo apt install flatpak

Flatpak

How to install Flatpak on Gentoo?

Finally, for Gentoo users we must create the following file with:

sudo nano -w /etc/portage/repos.conf/flatpak-overlay.conf

And inside the file we add the following:

[flatpak-overlay]
priority = 50
location = /usr/local/portage/flatpak-overlay
sync-type = git
sync-uri = git://github.com/fosero/flatpak-overlay.git
auto-sync = Yes

We save the file and install the file with:

emerge --sync

How to install Flatpak applications on Linux?

Once the installation is done, we can proceed to use Flatpak technology in our systems by installing applications in this format.

There are basically two ways to do it. The first one is by installing the application from a url, this is offered to us by the Flatpak application store which is "Flathub".

Also within the tutorials that you can find on the net, such as the publications of applications for Linux that we share here on the blog.

To install applications in this way, the command is composed as follows:

flatpak install --from url-de-la-aplicación

A practical example is the following, if we want to install Spotify we do it with the following command:

flatpak install --from https://s3.amazonaws.com/alexlarsson/spotify-repo/spotify.flatpakref

The other installation method is downloading the Flatpak package corresponding to our system architecture and installing it with:

flatpak install paquete.flatpak

In case you have the Gnome software center, just open the Flatpak package with it or by double clicking

How to run a Flatpak application on Linux?

To run applications installed with this technology, we do so by typing the following command:

flatpak run aplicación

For example, taking the Spotify installation as a reference:

flatpak run com.spotify.Client

How to uninstall apps installed with Flatpak on Linux?

Finally, to eliminate applications installed with this technology we do it with the following command:

flatpak uninstall aplicacion

Add as preferred source in Google