Enable Flatpak in Xubuntu

Enable Flatpak in Xubuntu

Table of Contents

Out of the box, Xubuntu supports Debian, Snap, and AppImage packages with no additional configuration or installation packages. If you want to expand your options further, you can easily enable Flatpak in Xubuntu. Here’s how!

What is Flatpak?

Flatpak bills itself as “the future of apps on Linux.” It’s an increasingly popular app distribution platform that offers sandboxing and simplified builds and deployment, similar to Snap. As it is a Linux packaging format, many politics and strong feelings surround it. You won’t find Flatpak preinstalled on any official Ubuntu flavor. Likewise, Snap is frequently absent outside of the Ubuntu ecosystem.

The Flatpak (and Flathub) introduction video, as featured on flatpak.org.

You might choose to enable Flatpak on Xubuntu to get access to the latest version of an app. GNOME, elementary OS, and a number of upstream maintainers now publish Flatpak packages themselves. Some software, such as the gesture-enabling Touché (see my previous post on enabling multi-touch gestures in Xubuntu), is only distributed on Flathub. If you can’t find something in the software repositories or Snap Store, you should check Flathub next.

Enabling Flatpak support

Xubuntu ships with GNOME Software, as opposed to the Snap Store in other flavors. As a result, enabling Flatpak support is as simple as installing the flatpak and gnome-software-plugin-flatpak packages. You can do this from the terminal or by clicking the Install button below, thanks to Xubuntu’s included AptURL support.

Install Flatpak Support

sudo apt install flatpak gnome-software-plugin-flatpak
Firefox users may see the `Open With...` dialog first. Select AptURL and then continue with your installation.
Firefox users may see the `Open With...` dialog first. Select AptURL and then continue with your installation.
The AptURL window is displayed, requesting confirmation before you can install packages.
The AptURL window is displayed, requesting confirmation before you can install packages.

Adding the Flathub repository (optional)

With Flatpak installed, you can now open .flatpakref (application) and .flatpakrepo (repository) files. To enable the Flathub repository, download and launch the Flathub repository file. I’ve linked to the Fedora Quick Setup guide since it features instructions for the download file. I’ve also linked to the file below.

Flathub repository file

Opening the .flatpakrepo file will launch GNOME Software, ready to add the Flathub repository to your system.
Opening the .flatpakrepo file will launch GNOME Software, ready to add the Flathub repository to your system.

And finally, reboot!

Remember to reboot once you’ve installed everything. This will ensure everything is set up correctly and ready to run. Afterwards, install your apps and enjoy having access to the latest and widest variety of software possible across the Debian/Ubuntu, Snap, AppImage, and Flatpak ecosystems.

comments powered by Disqus

Related Posts

Xfce PulseAudio Plugin 0.4.1 Released

Xfce PulseAudio Plugin 0.4.1 Released

Xfce PulseAudio Plugin 0.4.1 is a new stable milestone. This release wraps up an awesome development and is recommended for all users.

Read More
Xubuntu 17.10 "Artful Aardvark" Released

Xubuntu 17.10 "Artful Aardvark" Released

Xubuntu 17.10 is now available. It features appearance updates, new and updated applications, and improved video, audio, and printer support.

Read More
FOSS Roundup #5 - Time to Test (Ubuntu Flavors)

FOSS Roundup #5 - Time to Test (Ubuntu Flavors)

This week's roundup features the Xubuntu 22.04 wallpaper contest, the Ubuntu Testing Week until March 10, and Linux Mint switching to Blueman.

Read More