Install and Use Flatpak on AlmaLinux 8: Easy Way To Download Apps

This tutorial intends to teach you to Install and Use Flatpak on AlmaLinux 8. Flatpak is a software deployment and package management utility that offers a sandbox environment that allows users to run applications in isolation from the rest of the system.

Advantages of Flatpak:

Flatpak offers many advantages as a package manager:

  • Flatpak apps can be installed on any Linux distribution that supports Flatpak
  • We can add repositories to find and download apps; therefore, it supports the decentralized distribution of apps
  • Flatpak keeps apps isolated from the rest of the system; therefore, it is more secure
  • Flatpak apps are forward compatible; that is to say, the same Flatpak app can run on the subsequent releases of a Linux distro without any updates required
  • We don’t need to worry about dependencies/libraries that the program requires to run when working with Flatpak

Now you can proceed to the following steps on the Orcacore website to set up Flatpak package manager on AlmaLinux 8.

Steps To Install and Use Flatpak on AlmaLinux 8

To complete this guide, log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide on Initial Server Setup with AlmaLinux 8.

Installation Steps of Flatpak on AlmaLinux 8

First, you need to update your local package index with the command below:

sudo dnf update -y

The Flatpak package is available on the default AlmaLinux repository. To install it, simply run the following command:

sudo dnf install flatpak -y

Verify your Flatpak installation by checking its version:

flatpak --version
Output
Flatpak 1.10.7

How To Use Flatpak Package Manager?

At this point, we want to show you how to use your Flatpak package manager.

Enable Flathub on AlmaLinux 8

Now you need to enable the Flathub before using the Flatpak. FlatHub is an efficient and popular platform used for searching applications.

To do this you can use the following command:

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

Search Apps with Flatpak

To search for a specific app, you can use the following syntax:

flatpak search <Application_name>

For example, search for OpenJDK:

flatpak search openjdk
Search Apps with Flatpak

Install an App with Flatpak

When the desired application is searched, you can install it on AlmaLinux 8, using Flatpak. 

flatpak install <Application_name>

For example:

flatpak install openjdk

This will ask you which version you want to install.

Install an App with Flatpak Choose Version

When your installation is completed, you will get the following output:

Install an App with Flatpak

Uninstall Apps with Flatpak

To uninstall an App with Flatpak, you can use the following syntax:

flatpak uninstall APP-ID

For example:

flatpak uninstall runtime/org.freedesktop.Sdk.Extension.openjdk17
Uninstall Apps with Flatpak

For more information, you can visit the Flatpak Docs page.

Uninstall or Remove Flatpak

If you no longer want to use Flatpak, you can easily remove it with the command below:

sudo dnf autoremove flatpak -y

Conclusion

At this point, you have learned to Install and Use Flatpak on AlmaLinux 8. With Flatpak, you can easily download and install packages without needing dependencies and requirements.

Hope you enjoy it. Also, you may like to read the following articles:

How To Use Bootc in AlmaLinux?

Explore AlmaLinux HPC and AI Special Interest Group (SIG)

Run CyberPanel on AlmaLinux 8

Get Started With Sublime Text Editor on AlmaLinux 8

Please subscribe to us on Facebook and Twitter.

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!