How to Install RPM Fusion on AlmaLinux 9

RPM Fusion is a repository of add-on packages for AlmaLinux and EL+EPEL that a group of community volunteers maintains. RPM Fusion is not a standalone repository but an extension of AlmaLinux’s default packages that could not be included due to AlmaLinux being bound by the same legal restrictions as Red Hat.

The RPM Fusion repository comes in two flavors, Free and Non-Free. The free repository contains a free version of the software that is open source and non-free, which has mostly almost all free software but is closed source and mainly proprietary.

In the following tutorial, you will learn how to install RPM Fusion on AlmaLinux 9 workstation or server to install additional open-source or proprietary packages, along with RPM examples in the command line terminal.

Update AlmaLinux 9

Before you continue, your system is advised to ensure all existing packages are up to date to avoid system conflicts during the installation and good system maintenance.

sudo dnf upgrade --refresh -y

Install EPEL/EPEL Next Repository

The first task is to install the EPEL repository, and the recommendation is to install both repositories.

First, enable the CRB repository.

sudo dnf config-manager --set-enabled crb

Next, install EPEL using the following (dnf) terminal command.

sudo dnf install \
    https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
    https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm

Install & Enable RPM Fusion Repositories

In the second step, install the RPM Fusion repo’s in your terminal with the following install options below.

Note, if you an open-source fan, only install the free repository. For all other users, install both.

Install/Enable the Free Repository

sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm -y

Install/Enable the Non-Free Repository

sudo dnf install https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y

Next, verify the installation.

dnf repolist | grep rpmfusion

Example output:

How to Install RPM Fusion on AlmaLinux 9

Enable RPM Fusion Testing Updates

For users that may require the latest bleeding-edge updates, such as the newest beta or new release NVIDIA Drivers, enabling the RPM Fusion Testing Branch can be helpful but keep in mind the packages may be unstable; please use them with caution.

Enable the Free Testing Updates Repository

sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing

Enable the Non-Free Testing Updates Repository

sudo dnf config-manager --set-enabled rpmfusion-nonfree-updates-testing

Check to see if the testing RPM fusions have been added.

dnf repolist | grep rpmfusion

Example output:

How to Install RPM Fusion on AlmaLinux 9

RPM Fusion Examples

First, you should list what is available in the RPM Fusion repositories you imported.

List all Packages

dnf --enablerepo=rpmfusion-* list available | grep rpm fusion | more

Additionally, installing the dnf-utilities package can yield better results.

sudo dnf install dnf-utils -y

Then use the repo query command. The example will continue to use Discord.

sudo repoquery -i VirtualBox

Example output:

How to Install RPM Fusion on AlmaLinux 9

As you can see, the VirtualBox package is coming from the RPM Fusion Free repository.

Install RPM Fusion AppStream Meta Data

The RPM Fusion repository provides packages for GNOME and KDE Discover.

sudo dnf groupupdate core

Install RPM Fusion Multimedia

RPM Fusion repositories also provide packages and updates to play multimedia files and GStreamer compatibility.

Install multimedia packages for GStreamer Enabled Applications:

sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin

Install sound and video packages required by some applications:

sudo dnf groupupdate sound-and-video

Tainted RPM Fusion Repos

RPM Fusion has what is known as “tainted” repositories for free and non-free. To sum it up, these repositories contain illegal software in certain countries due to licensing.

Install Taint RPM Fusion Free support (For Floss Packages)

sudo dnf install rpmfusion-free-release-tainted

Install Taint RPM Fusion Non-Free support (For Non-Floss Packages)

sudo dnf install rpmfusion-nonfree-release-tainted

Example of installing additional tainted proprietary support packages.

sudo dnf install \*-firmware

Once done, use the grep command to check the dnf repolist of all the installed RPM Fusions.

dnf repolist | grep rpmfusion

Example output:

How to Install RPM Fusion on AlmaLinux 9

As above, you can see that the tutorial has all repositories of RPM Fusion enabled; ideally, you would only have the standard installed for most situations.

How to Disable RPM Fusion Testing Updates

If you no longer require the RPM fusion testing repository, you can disable it by using one of the following commands that match the repository you enabled.

Disable the Free Testing Updates Repository

sudo dnf config-manager --set-disabled rpmfusion-free-updates-testing

Disable the Non-Free Testing Updates Repository

sudo dnf config-manager --set-disabled rpmfusion-nonfree-updates-testing

How to Remove (Uninstall) RPM Fusion Repo

To remove the repositories from your AlmaLinux system is relatively easy. To remove repositories, you need to find the name and use the dnf remove command, but first, make sure to have the full name. This can be done using the following command.

Remove the Free Repository

sudo dnf remove rpmfusion-free-release -y

Remove the Non-Free Repository

sudo dnf remove rpmfusion-nonfree-release -y

Remove the Free (Tainted) Repository

sudo dnf remove rpmfusion-free-release-tainted -y

Remove the Non-Free (Tainted) Repository

sudo dnf remove rpmfusion-nonfree-release-tainted -y

To re-install the Fusion drive, repeat the process at the start of the tutorial.

Comments and Conclusion

Overall, RPM Fusion is also used on RHEL type distributions, and it’s a well-respected option for getting packages that are not available by default while still utilizing the dnf package manager and not manually installing or using a third-party service like flatpak or snap.

To search the RPM Fusion repository database for packages, visit here.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!