WindowsMacLinuxAndroid APKGames
How-To'sLinuxIn this guide we will show you how to install Flatpak on Ubuntu ...

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS.

Mar 30.2021Linux written by Razvan Iancu
We have noticed an increase in the number of Flatpak applications that we want to install in Linux and more precisely in Ubuntu 18.04.

In this guide we will explain step by step how to install Flatpak in Ubuntu, how to configure it and how to install Flatpak applications.

The official Flatpak website has a very good setup guide that covers several distributions. The guide we are going to present is adapted to what needs to be installed, with additional screenshots, details and tips.

1. What is Flatpak?

Flatpak is a new generation Linux application format, developed by Red Hat and used in Fedora.

Flatpak applications are packaged and come with everything they need to work optimally and be able to support all automatic updates in the background.

Flatpak technology allows Linux users to install applications regardless of the vendor or package manager they use, and more and more software developers are choosing to deploy applications using this new method.

Each time you install a Flatpak application, it will ask for permission before you can access the hardware. Its good to note that Flatpak gives you much more control over your software.

2. How to install Flatpak on Ubuntu 18.04 LTS

First open the terminal by pressing Ctrl + Alt + T on the keyboard. When the terminal opens, run the command to install the flatpak plugin:

$ sudo apt update
$ sudo apt install gnome-software-plugin-flatpak

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 01

Add the main Flathub repository by running the command:

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 02

After installation, Restart your computer, and you'll have access to search and install applications in Flatpak format.

3. Install .flatpak application

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 03

To install an application run the command:

$ sudo flatpak install [application name].flatpak
We tested the operation of this package on the glimpse-0.2.0r2.flatpak file.
Upon completion of the installation, the application icon appeared in the list of applications in Ubuntu 18.04.

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 04

I launched the application and it works perfectly, and moreover it has all the plugins it needs without the need for additional downloads.

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 05

4. Uninstall .flatpak application

Flatpak identifies each application and runtime using a unique three-part identifier. The final segment of this address is the object name, and the front part identifies the developer.

To uninstall the application we need to know how the application is defined in the system. To search for the flatpak application in the system files, the command is as follows:

flatpak search [application name]
In this case we wanted to search for 'glimpse', and the result indicated that the application has the unique id 'org.glimpse_editor.Glimpse'.

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 06

Alternatively you can only list installed applications:

$ flatpak list --app
or you can list all installed applications :

$ flatpak list
Now it is very simple to uninstall the application, using the following command:

$ flatpak uninstall [Application ID]
In this case: [Application ID] has been replaced with org.glimpse_editor.Glimpse

In this guide we will show you how to install Flatpak on Ubuntu 18.04 LTS. - screenshot 07