Get to know RHEL Repos.
YUM (Yellowdog Updater, Modified) is a GNU General Public License-licensed command-line package management software for RPM-based Linux systems. Yum is a Red Hat package manager that can search for available packages, download them from repositories, install and remove them, and update an entire system to the most recent version. Yum uses automatic dependency resolution to automatically determine, fetch, and install all available dependant packages when updating, installing, or removing packages.
What is RPM Fusion?
RPM Fusion is a software repository that provides add-on packages for the Fedora and Red Hat Linux distributions. It was created by combining the Livna, Dribble, and Freshrpms repositories. They disseminated software that Fedora and Red Hat will not distribute, either because it does not match Fedora and Red Hat’s concept of free software or because its distribution may be illegal in the United States.
In our today’s guide, we will demonstrate how to Enable RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9.
Need For RPM Fusion?
RPM Fusion distributes software that neither the Fedora Project nor Red Hat intend to provide. For all current Fedora versions and current Red Hat Enterprise Linux or clones versions, that software is offered as precompiled RPMs; you can use the RPM Fusion repositories with tools like yum and PackageKit. RPM Fusion is the result of the combination of Dribble, Freshrpms, and Livna. RPM Fusion goal is to make the end-user experience as simple as possible by centralizing as many add-on software as feasible.
Enable RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9
The steps below will get you through how to Enable RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9.
Before we can enable RPM Fusion repo, lets look at RPM Fusion installation requirements:
RPM Fusion Installation Requirements
Here are the RPM Fusion installation requirements:
- Rocky Linux 9 | AlmaLinux 9 Server or Desktop.
- Stable internet.
- Superuser privileges (sudo).
Step 1: Enable EPEL Repo on Rocky Linux 9 | AlmaLinux 9
It’s essential that our Rocky Linux 9 or AlmaLinux 9 system has the popular Extra Packages for Enterprise Linux (EPEL) repository activated before adding the RPM Fusion repository.
Run the following command to do so:
sudo dnf install epel-release
Accept the installation prompt by pressing y or Y on your keyboard:
Rocky Linux 9 - BaseOS 4.0 kB/s | 4.1 kB 00:01
Rocky Linux 9 - BaseOS 3.9 MB/s | 3.4 MB 00:00
Rocky Linux 9 - AppStream 7.0 kB/s | 4.5 kB 00:00
Rocky Linux 9 - AppStream 8.6 MB/s | 9.1 MB 00:01
Rocky Linux 9 - Extras 4.4 kB/s | 2.9 kB 00:00
Dependencies resolved.
=====================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================
Installing:
epel-release noarch 9-7.el9 extras 19 k
Transaction Summary
=====================================================================================================================================================
Install 1 Package
Total download size: 19 k
Installed size: 26 k
Is this ok [y/N]: y
Run System update after enabling EPEL Repo:
sudo dnf update -y
Step 2: Enable RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9
After you’ve activated EPEL, you’ll need to add the RPM Fusion repositories.
Two software repositories are available:
- Free for Open Source Software that the Fedora team is unable to ship because of a variety of factors.
- For redistributable software that is not Open Source Software, the term “nonfree” is used. This software applications with publicly available source code that is restricted to “no commercial use.”
Run the following command to enable Free RPM Fusion Repo:
$ sudo dnf install rpmfusion-free-release
Last metadata expiration check: 0:02:31 ago on Thu 06 Feb 2025 08:21:17 PM EAT.
Dependencies resolved.
=====================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================
Installing:
rpmfusion-free-release noarch 9-1 extras 9.2 k
Transaction Summary
=====================================================================================================================================================
Install 1 Package
Total download size: 9.2 k
Installed size: 3.8 k
Is this ok [y/N]: y
Run the following command to enable Nonfree RPM Fusion Repo:
$ sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-9.noarch.rpm
RPM Fusion for EL 9 - Free - Updates 83 kB/s | 220 kB 00:02
Last metadata expiration check: 0:00:01 ago on Thu 06 Feb 2025 08:24:47 PM EAT.
rpmfusion-nonfree-release-9.noarch.rpm 6.2 kB/s | 10 kB 00:01
Dependencies resolved.
=====================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================
Installing:
rpmfusion-nonfree-release noarch 9-1 @commandline 10 k
Transaction Summary
=====================================================================================================================================================
Install 1 Package
Total size: 10 k
Installed size: 3.9 k
Is this ok [y/N]: y
Run System update after enabling RPM Fusion Repo:
sudo dnf update -y
Now, run the following command to confirm that you have successfully enabled RPM Fusion Repo on Rocky Linux | AlmaLinux 9:
$ sudo dnf repolist enabled | grep -i rpmfusion
rpmfusion-free-updates RPM Fusion for EL 9 - Free - Updates
rpmfusion-nonfree-updates RPM Fusion for EL 9 - Nonfree - Updates
Using RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9
The following are the uses of RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9:
1. Check available packages in RPM Fusion Repo
Simply run the following command to see what packages are available to install through the RPM Fusion repository for your Linux system.
Run the following command to check free packages:
$ sudo dnf repository-packages rpmfusion-free-updates list
Available Packages
VirtualBox.x86_64 7.1.0-2.el9 rpmfusion-free-updates
VirtualBox-devel.x86_64 7.1.0-2.el9 rpmfusion-free-updates
VirtualBox-kmodsrc.noarch 7.1.0-2.el9 rpmfusion-free-updates
VirtualBox-server.x86_64 7.1.0-2.el9 rpmfusion-free-updates
VirtualBox-webservice.x86_64 7.1.0-2.el9 rpmfusion-free-updates
akmod-VirtualBox.x86_64 7.1.0-1.el9 rpmfusion-free-updates
akmod-v4l2loopback.x86_64 0.12.7^20230503g2c9b670-3.el9 rpmfusion-free-updates
akmod-xtables-addons.x86_64 3.25-2.el9 rpmfusion-free-updates
audacious-plugins-freeworld.x86_64 4.3.1-1.el9 rpmfusion-free-updates
audacious-plugins-freeworld-aac.x86_64 4.3.1-1.el9 rpmfusion-free-updates
buildsys-build-rpmfusion.x86_64 11:35-0.9.el9 rpmfusion-free-updates
buildsys-build-rpmfusion-kerneldevpkgs-current.x86_64 11:35-0.9.el9 rpmfusion-free-updates
compat-ffmpeg4.x86_64 4.4.5-2.el9 rpmfusion-free-updates
compat-ffmpeg4-devel.x86_64 4.4.5-2.el9 rpmfusion-free-updates
faad2.x86_64 1:2.10.1-1.el9 rpmfusion-free-updates
faad2-devel.x86_64 1:2.10.1-1.el9 rpmfusion-free-updates
....
Run the following command to check nonfree packages:
$ sudo dnf repository-packages rpmfusion-nonfree-updates list
Last metadata expiration check: 0:01:33 ago on Thu 06 Feb 2025 08:25:34 PM EAT.
Available Packages
akmod-nvidia.x86_64 3:550.127.05-1.el9 rpmfusion-nonfree-updates
akmod-nvidia-340xx.x86_64 1:340.108-25.el9 rpmfusion-nonfree-updates
akmod-nvidia-470xx.x86_64 3:470.223.02-1.el9 rpmfusion-nonfree-updates
akmod-nvidia-open.x86_64 3:550.78-1.el9 rpmfusion-nonfree-updates
akmod-wl.x86_64 6.30.223.271-54.el9 rpmfusion-nonfree-updates
broadcom-wl.noarch 6.30.223.271-21.el9 rpmfusion-nonfree-updates
discord.x86_64 0.0.81-1.el9 rpmfusion-nonfree-updates
intel-media-driver.x86_64 21.1.3-1.el9 rpmfusion-nonfree-updates
kmod-nvidia.x86_64 3:550.127.05-1.el9 rpmfusion-nonfree-updates
kmod-nvidia-340xx.x86_64 1:340.108-25.el9 rpmfusion-nonfree-updates
kmod-nvidia-340xx-5.14.0-162.el9_1.x86_64 1:340.108-25.el9 rpmfusion-nonfree-updates
kmod-nvidia-470xx.x86_64 3:470.223.02-1.el9 rpmfusion-nonfree-updates
kmod-nvidia-470xx-5.14.0-362.el9_3.x86_64 3:470.223.02-1.el9 rpmfusion-nonfree-updates
kmod-nvidia-5.14.0-427.el9_4.x86_64 3:550.127.05-1.el9 rpmfusion-nonfree-updates
kmod-nvidia-open.x86_64 3:550.78-1.el9 rpmfusion-nonfree-updates
kmod-nvidia-open-5.14.0-362.el9_3.x86_64 3:550.78-1.el9 rpmfusion-nonfree-updates
kmod-wl.x86_64 6.30.223.271-54.el9 rpmfusion-nonfree-updates
lpf-spotify-client.x86_64 1.2.53.440-2.el9 rpmfusion-nonfree-updates
....
2. Search packages using RPM Fusion repo
Rather than listing all packages, we can search for certain packages to see if they are included in RPM Fusion repo.
For example let’s search for VLC player:
$ sudo dnf repository-packages rpmfusion-free-updates list | grep -i vlc
obs-studio-plugin-vlc-video.x86_64 30.0.0-2.el9 rpmfusion-free-updates
vlc-plugins-freeworld.x86_64 3.0.20-1.el9 rpmfusion-free-updates
3. Install packages using RPM Fusion repo
If the package is available in RPM Fusion repo, like for example the VLC player we search above is available.
Run the following command to install VLC player:
$ sudo dnf install vlc-devel
Last metadata expiration check: 0:02:44 ago on Thu 06 Feb 2025 08:25:34 PM EAT.
Dependencies resolved.
=====================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================
Installing:
vlc-devel x86_64 1:3.0.21-9.el9 epel 203 k
Installing dependencies:
libpkgconf x86_64 1.7.3-10.el9 baseos 35 k
libproxy x86_64 0.4.15-35.el9 baseos 73 k
pkgconf x86_64 1.7.3-10.el9 baseos 40 k
pkgconf-m4 noarch 1.7.3-10.el9 baseos 14 k
pkgconf-pkg-config x86_64 1.7.3-10.el9 baseos 10 k
vlc-libs x86_64 1:3.0.21-9.el9 epel 6.6 M
Installing weak dependencies:
libproxy-bin x86_64 0.4.15-35.el9 appstream 14 k
Transaction Summary
=====================================================================================================================================================
Install 8 Packages
Total download size: 7.0 M
Installed size: 43 M
Is this ok [y/N]: y
Disable or Enable RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9.
You can decide to disable RPM Fusion Repo when you are no longer using it.
First, install YUM utils by running the following command:
$ sudo dnf install yum-utils
Last metadata expiration check: 0:03:40 ago on Thu 06 Feb 2025 08:25:34 PM EAT.
Dependencies resolved.
=====================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================
Installing:
yum-utils noarch 4.3.0-16.el9 baseos 35 k
Transaction Summary
=====================================================================================================================================================
Install 1 Package
Total download size: 35 k
Installed size: 23 k
Is this ok [y/N]: y
Now, run the following command to disable RPM Fusion Repo i.e for free packages:
sudo yum-config-manager --disable rpmfusion-free-updates
Check disabled RPM Fusion Repo:
$ sudo yum repolist disabled | grep -i rpmfusion
rpmfusion-free-updates RPM Fusion for EL 9 - Free - Updates
rpmfusion-free-updates-debuginfo RPM Fusion for EL 9 - Free - Updates Debug
rpmfusion-free-updates-source RPM Fusion for EL 9 - Free - Updates Source
rpmfusion-free-updates-testing RPM Fusion for EL 9 - Free - Test Updates
rpmfusion-free-updates-testing-debuginfo RPM Fusion for EL 9 - Free - Test Updates Debug
rpmfusion-free-updates-testing-source RPM Fusion for EL 9 - Free - Test Updates Source
rpmfusion-nonfree-updates-debuginfo RPM Fusion for EL 9 - Nonfree - Updates Debug
rpmfusion-nonfree-updates-source RPM Fusion for EL 9 - Nonfree - Updates Source
rpmfusion-nonfree-updates-testing RPM Fusion for EL 9 - Nonfree - Test Updates
rpmfusion-nonfree-updates-testing-debuginfo RPM Fusion for EL 9 - Nonfree - Test Updates Debug
rpmfusion-nonfree-updates-testing-source RPM Fusion for EL 9 - Nonfree - Test Updates Source
Run the following command to re-enable rpmfusion-free-updates:
sudo yum-config-manager --enable rpmfusion-free-updates
Conclusion
We have come to an end of our guide on how to Enable RPM Fusion Repo on Rocky Linux 9 | AlmaLinux 9. We hope you found this guide useful.
Cool Guides in our site: