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

Mugshot 0.3.0 Released

Mugshot 0.3.0 Released

Mugshot 0.3.0 is now powered by Cheese and Clutter. Since the previous 0.2.3 release announcement, various bugs have been fixed.

Read More
Xfce Panel Switch: Introduction

Xfce Panel Switch: Introduction

Xubuntu 15.10 introduces a new application for managing layouts in Xfce. This simple utility fills a void for uses and distributors alike.

Read More
Follow Me! Blog, RSS, and Social

Follow Me! Blog, RSS, and Social

Learn how to get the latest updates from me. Subscribe to my blog via RSS or email, or follow me on social media with Mastodon or Twitter.

Read More