How to Install Flatpak Apps in Ubuntu and Other Linux

4 min


A beginner’s guide on how to install Flatpak in Ubuntu and other Linux distributions.

What is Flatpak?

Flatpak is the new way of distributing apps across the Linux universe, irrespective of the distribution. This cross-distro application distribution and deployment framework enable developers to Flatpak setup for apps for all major distributions.

The major hurdles in any Linux app distribution are dependencies, and Flatpak covers that. Flatpak builds bundles the dependencies for the respective apps, and end-users need not worry about it.

With the growing trends, many app developers are now providing the Flatpak builds along with traditional packages, e.g. *.deb, etc. With a quick setup for your distributions, you can be ready to explore the world of Flatpak apps. All the major Flatpak apps are available on flathub.org. You can search and just click a button, you can install the Flatpak apps. Here’s how to set it up for Ubuntu and other Linux distributions.

How to setup Flatpak in Ubuntu

  • For Ubuntu 24.04, 23.10 use the following command to install Flatpak:
sudo apt install flatpak

If you are using an older version of Ubuntu, use the following repo.

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
  • The second step is optional if you want to install Flatpak apps via the browser. Enable Ubuntu Software to recognize Flatpak apps and their installations. Run the below commands from the terminal and provide the password when prompted.
sudo apt install gnome-software-plugin-flatpak
  • Add the Flathub repository where all the Flatpak apps reside. Run the below commands from the terminal.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  • Reboot.

Install in Other Linux Distributions

Flatpak is available to install almost all possible distributions. Here’s a quick list of commands you can run from the terminal in all the distros.

Linux distro nameInstructions or commands to set up Flatpak
AlmaLinuxEnabled by default. No action is required.
Alpine LinuxRun the following commands:

sudo apk add flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
Arch LinuxRun the following commands:
sudo pacman -S flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
CentOSEnabled by default. No action is required.
Clear LinuxEnabled by default. No action is required.
DebianRun the following commands:
apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
Deepin OSRun the following commands:
sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
elementary OSEnabled by default. No action is required.
Endeavour OSEnabled by default. No action is required.
Endless OSEnabled by default. No action is required.
Fedora LinuxFlatpak is installed by default. All you need to do is to install the Flathub repo:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

And finally, reboot your system before installing the Flatpak app.
GentooRun the following commands:
echo -e 'sys-apps/flatpak ~amd64\nacct-user/flatpak ~amd64\nacct-group/flatpak ~amd64\ndev-util/ostree ~amd64' >> /etc/portage/package.accept_keywords/flatpak
emerge sys-apps/flatpak


flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
KDE NeonEnabled by default. No action is required.
KubuntuRun the following commands:

sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


sudo apt install plasma-discover-backend-flatpak


reboot
Linux MintEnabled by default. No action is required.
MageiaRun the following commands:
dnf install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
Manjaro Linux (Arch-based)Installed by default since Manjaro 20 and higher.
Make sure it is enabled in the below navigation:
Software Manager > Preferences > Flatpak Tab > Enable Flatpak Support
Reboot your system
MX LinuxEnabled by default. No action is required.
Nix OSOpen /etc/nixos/configuration.nix and add the following:
Services.flatpak.enable = true;

And then run the followings:

sudo nixos-rebuild switch

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
openSUSE Leap and TumbleweedFlatpak is installed by default. All you need to do is to install the Flathub repo:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

And finally, reboot your system before installing the Flatpak apps.
Pop OSEnabled by default. No action is required.
Raspberry Pi OSRun the following commands:
sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
Red Hat Enterprise Linux (RHEL)sudo yum install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
SolusRun the following commands:
sudo eopkg install flatpak xdg-desktop-portal-gtk

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
Void LinuxRun the following commands:
sudo xbps-install -S flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo


reboot
Zorin OSEnabled by default. No action is required.

Once installation is completed, and reboot is done, you can install some cool Flatpak apps via the below steps.

How to Install Flatpak Apps in Ubuntu and Other Linux

There are two ways you can install Flatpak apps. Firstly via the command line, which I recommend. And second is the browser method.

I recommend using the command line because it is faster and easier.

Using the command line (recommended)

The sample command to install any Flatpak app is available at the bottom section of the Flathub app page. A sample command is below:

flatpak install org.gimp.GIMP

Change the above “org.gimp.GIMP” for your application. Remember, this is case-sensitive.

Using the graphical method via browser

  • Go to Flathub.
  • Search for any apps you want to install.
  • Click install after selecting your desired app.
  • Click Ok when it prompts you to start the installation via Software.
  • The Software will open and wait till the installation finishes.
Search for Flatpak app in Flathub (example)
Search for Flatpak app in Flathub (example)
Install Flatpak apps
Install Flatpak apps
Open Flatpackref via Software
Open Flatpackref via Software

How to update Flatpak after you install them?

Updating Flatpak is super easy via the terminal. For example, if you want to update the above GIMP package, you need to run the below command.

flatpak update org.gimp.GIMP

So, this will update a single package. Replace your package’s name (i.e. Application ID) for your use case. If you don’t know the Application ID, run the command flatpak list from the terminal, and you will find it.

If you want to update ALL the Flatpak packages in your system, run the following:

flatpak update

How to uninstall a Flatpak?

You can uninstall a package using the following command. Make sure to change the Application ID for your use case. You can find out the Application ID from the command: flatpak list.

flatpak remove org.gimp.GIMP

Closing Notes

In this tutorial, I have explained how you can easily set up Flatpak and install apps from Flathub. Moreover, Flatpak applications are a great way to install and manage them easily. In my opinion, Flatpak will eventually dominate Snap and AppImage in the future.

You may want to check out our other articles about Flatpak, which include how to manage permission, various Flatpak commands and more.


Arindam

Creator and author of debugpoint.com. Connect with me via Telegram, 𝕏 (Twitter), or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments