Skip to main content

How to Install Flatpak on Ubuntu (Step-by-Step Guide)

In this guide we show you how to install Flatpak on Ubuntu 18.04 LTS and above to unlock a world of new and updated software via Flathub.
Recent versions of Ubuntu come with support for Snap apps out of the box — but Snaps aren’t the only universal package format on the scene.
Regular readers will have noticed an uptick in the number of Flatpak apps we mention on these very pages. Indeed, it was a reader who asked if I could put together a step-by-step guide on how to install Flatpak in Ubuntu, how to set up the Flathub repo, and how to install Flatpak apps.
The official Flatpak website has a great setup guide covering multiple distributions. The guide that follows is adapted from that, but with added screenshots, background details, and tips.

What is Flatpak?

the spotify linux app flatpak running on ubuntu
Spotify is available as a Flatpak app
Flatpak is a ‘next-generation’ Linux app format developed by Red Hat and used in Fedora.
It’s similar to Snappy in many ways: apps are sandboxed; come bundled up with everything they need to run; and support automatic updates in the background.
Because these technologies allow Linux users to install apps regardless of which distro or package manager they use, more and more software developers are choosing to distribute apps using these new methods.
Build once, run everywhere is a strong sell. Dependencies were the main headache in packaging software for different Linux distributions, something Flatpak (like Snaps) ‘solves’.
And by using OSTree Flatpak enables developers to create a complete app bundle that contains all of the dependencies, libraries and other files needed to run their program.
Because Flatpak apps are run in isolation from the rest of the system, it’s possible to run multiple versions of the same program at the same time (e.g., nightly and stable).
Flatpak apps also have to ask for permission before they can access hardware (e.g., web cam); read or open files outside of the sandbox; or use location detection technologies like geoclue. In all, Flatpaks gives you far greater control over the software you run.
So why use Flatpak? There are a few key reasons:
  • No dependency incompatibilities
  • More control over what apps can do
  • Get app updates sooner
  • Access a wider range of software
  • Get updates direct from app developers
There are plenty of other reasons why you might want to use this new-fangled app format, so feel free to expand on this in the comments section.

How to Install Flatpak on Ubuntu 18.04 LTS +

If you run Ubuntu 18.04 LTS or later you can install Flatpak on Ubuntu using the Ubuntu Software tool — though you can’t search for it by name.
Instead, hit this button:
A small prompt will appear asking you to OK the installation:
It's easy to install Flatpak in Ubuntu
Click ‘Install’ and let it do its thing!

Get the latest version

One ‘catch’ to installing the version of Flatpak available to install through Ubuntu Software is that it’s (often) out of date.
New versions of Flatpak are released regularly but these updates are not pushed out to Ubuntu users automatically.
So if you want to install the latest version of Flatpak on Ubuntu (and chances are you do) add the following official Flatpak PPA to your software sources. The PPA supports Ubuntu 16.04 LTS and above:
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update && sudo apt install flatpak
But you’re not done yet…

Install the software plugin

To install Flatpak apps without needing to use the command line you need to install the Flatpak plugin for Ubuntu Software:
sudo apt install gnome-software-plugin-flatpak
This plugin allows the Software app to handle .flatpakref files, which are sort of like .torrent files: they don’t contain the download itself, but where to get it from.
Which leads us on to…

How to Use Flathub on Ubuntu

Flathub is the leading app store for Flatpak apps. More and more developers are choosing both Flatpak and Flathub as a primary distribution method, making it a real no-brainer: you’ll want to add this.

What is Flathub?

Canonical’s Snappy is proving a big hit with developers and users alike. Part of its success is in its simplicity. It has a single, centralised ‘app store’ (of sorts) where devs upload their Snap apps to, and users download Snap apps from.
Snapd (the tool for installing and managing snaps on Linux) is configured to use this store by default, ensuring that every Ubuntu user has access to hundreds of apps out of the box.
The good news is that Flatpak also has an ‘app store’ of sorts, called Flathub. Like the Snap store, Flathub acts as a centralised repository that any user can install Flatpak apps from, and any app developer can add their apps to.

How to add Flathub Repo

To install Flathub on Ubuntu run this command:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
You’ll be prompted to enter your password to authorise the change.
And then… That’s almost it! All you need to do now is restart your computer so that all the necessary components lock into place correctly.
When your system comes back up you’ll be set; you have everything you need to install Flatpak apps on Ubuntu using Ubuntu Software or the Flathub website.

How to Install Apps from Flathub

If you installed the Flatpak software plugin mentioned earlier in this guide then you’re all set: you can install Flatpak apps by searching in the Ubuntu Software center.
The downside is you may find it difficult to tell which apps are Flatpaks, and which apps are Snaps or regular repo software.
Keep an eye out for the “source: flathub.org” text in Software search results:
Ubuntu Software Flatpak
You can also browse and install apps from Flathub using a web browser. Just point your browser towards the Flathub website to get started.
Here you can browse apps on Flathub based on their category (Utility, Games, etc) or search for apps by name (e.g., ‘GIMP’, ‘Spotify’, etc).
When you find an app you want to install all you have to do is click through to its store listing page and click the “Install” button (1).
You’ll see a dialog asking you which app you want to open the .flatpakref file with. Make sure that “Software install (default)” is selected (2):
open flatpakref file in ubuntu software
This will start installation of the Software:
install flatpak ubuntu software
Ubuntu Software will open up and you’ll be able to see the pgoress of  installation.
This is how you can enable Flatpak and install Flatpak apps from Flathub in Ubuntu.

Comments

Popular posts from this blog

Session Messenger----Best Secure Messaging App

  Session is fundamentally different than most other secure messaging services. Conversations in Session are secured using  client-side E2E encryption . Only the sender and the recipient of a message can read it. But Session goes beyond providing message security. Session also  protects the identities  of its users. It makes your communications private and anonymous, as well as secure. Session can do this because it  connects users  through a  Tor -like network of thousands of  Service Nodes . Service Nodes are servers that pass messages back and forth through the network as well as provide additional services. The  onion request  system that Session uses to protect messages ensures that no Service Node in the network ever knows both a message’s origin (your IP address) and destination (the recipient’s IP address). This allows you to  hide your IP  by default. Session takes a number of additional steps to protect your identity: No phone number is required for registration No email is r

Tiny 11 - A Lightweight Windows 11 that can run on 2GB RAM and requires less harddisk space.

  In terms of Windows 11, its   system requirements   are high since this system requires at least 4GB RAM, 64GB storage space, enabled TPM & Secure Boot, a high CPU (1 GHz or faster with 2 or more cores on a compatible 64-bit processor), etc. compared to any old Windows operating systems. If you have an old or lower-end PC, Windows 11 is not a good option to install since many issues like random crashes, blue screen errors, etc. could appear on the unsupported hardware. Overview of Tiny11 If you want to run Windows 11 on your old computer with low RAM and disk space, Tiny11 appears in public. It is a project from NTDev and Tiny11 is a Windows 11 tiny edition. This edition is based on Windows 11 Pro 22H2 and includes everything you need for a comfortable computing experience since this tool doesn’t have the bloat and clutter of a standard Windows installation. Tiny11 Requirements In terms of Tiny11 requirements, a scant 8GB of storage and just 2GB of RAM are required and Windows 11

Linuxfx 10 : A Windows-Like Linux Distro

The idea of Linuxfx is to make it easier for people who are migrating from Windows 7. People who are dissatisfied with the lack of security and stability of Windows 10 are also fit for Linuxfx. LinuxFX Desktop : Apart from Windows-like looks, Linuxfx also has more to offer which a regular user will definitely admire. So, let’s get along with me to know more about Windows alternative Linuxfx. As usual, I started by downloading the ISO image of Linuxfx from the official site  here . Then, instead of dual-booting, I decided to install it on my VirtualBox to play safely. After finishing the basic configuration, as soon as I booted it, I noticed a Windows logo and system integrity check. That’s quite surprising because every Linux distro puts their own or OEM logo on that place. But I think Linuxfx wants to make migrating users feel like home from the beginning. Entering the boot menu, Linuxfx redirected and logged in to a live session. Whoah! it can also detect the system I’m using — anoth