Share your love
Enable RPM Fusion Repository on Rocky Linux 9 | Easy Steps

In this tutorial on the Orcacore website, we want to teach you How To Enable RPM Fusion Repository on Rocky Linux 9. RPM Fusion is a community-maintained, third-party software repository that provides packages that the Fedora project and Red Hat can’t ship due to legal and various other reasons as stated earlier.
RPM Fusion has two repositories namely “free” and “nonfree“. The free repository contains packages that are Open Source as defined by Fedora licensing guidelines. The nonfree repository contains redistributable packages that are not Open Source and packages that are not free for commercial purposes.
You can add both repos and use them simultaneously on your personal system. There won’t be any conflicts between the packages in the free and nonfree repos. If you’re interested in running only free packages, just add the free repo and install the nonfree repo later.
Table of Contents
Steps To Enable RPM Fusion Repository on Rocky Linux 9
To complete this guide, you must 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 Rocky Linux 9.
1. Install EPEL Repository on Rocky Linux 9
First, you need to update your local package index with the following command:
sudo dnf update -y
Then, use the command below to enable and install the EPEL repo on your server:
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Or you use the following command to install EPEL Repo instead of the above command:
sudo dnf install epel-release -y
2. Add RPM Fusion Repository on Rocky Linux 9
At this point, you can use the following command to enable the RPM fusion repo.
For the free repository, use the following command:
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm -y
For the non-free repository, use the command below:
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y
You can verify your RPM Fusion installation by using the following command:
dnf repolist | grep rpmfusion
Output
rpmfusion-free-updates RPM Fusion for EL 9 - Free - Updates
rpmfusion-nonfree-updates RPM Fusion for EL 9 - Nonfree - Updates
3. List Available Packages in RPM Fusion Repo
At this point, you can list the available packages in the RPM fusion repo.
For free packages, use the command below:
dnf repository-packages rpmfusion-free-updates list

For non-free packages, use the following command:
dnf repository-packages rpmfusion-nonfree-updates list

Search Packages in RPM Fusion Repo
As you can see, listing packages takes a long time. You can search for a specific package in the repository instead. For example, you can search for the VirtualBox:
dnf repository-packages rpmfusion-free-updates list | grep -i virtualbox
Output
VirtualBox.x86_64 6.1.40-1.el9 rpmfusion-free-updates
VirtualBox-devel.x86_64 6.1.40-1.el9 rpmfusion-free-updates
VirtualBox-kmodsrc.noarch 6.1.40-1.el9 rpmfusion-free-updates
VirtualBox-server.x86_64 6.1.40-1.el9 rpmfusion-free-updates
VirtualBox-webservice.x86_64 6.1.40-1.el9 rpmfusion-free-updates
akmod-VirtualBox.x86_64 6.1.40-1.el9 rpmfusion-free-updates
kmod-VirtualBox.x86_64 6.1.40-1.el9 rpmfusion-free-updates
kmod-VirtualBox-5.14.0-70.el9_0.x86_64 6.1.40-1.el9 rpmfusion-free-updates
python3-VirtualBox.x86_64 6.1.40-1.el9 rpmfusion-free-updates
4. Disable RPM Fusion Repo on Rocky Linux 9
If you plan to disable RPM fusion, you can use the following commands.
For free repository, use:
sudo dnf config-manager --set-disabled rpmfusion-free-updates
For non-free repositories, use:
sudo dnf config-manager --set-disabled rpmfusion-nonfree-updates
Also, you can completely remove it from your server by using the following commands:
Free repository:
sudo dnf remove rpmfusion-free-release
Non-free repository:
sudo dnf remove rpmfusion-nonfree-release
Conclusion
At this point, you have learned to Enable RPM Fusion Repository on Rocky Linux 9. RPM Fusion provides additional software packages, including multimedia codecs, GPU drivers, and other applications not available in the default Rocky Linux repositories.
Hope you enjoy it. You may also interested in these articles:
Set up Java_Home Path on Debian 11
How To Install and Use tmux on Linux
Install PostgreSQL 15 on Rocky Linux 8
FAQs
What is the difference between “Free” and “Non-Free” repositories in RPM Fusion?
Free: Contains open-source software.
Non-Free: Includes proprietary software like NVIDIA drivers and firmware.
Is RPM Fusion safe to use?
Yes, it’s widely trusted, but always verify package sources before installing.