RPM Fusion is a unique repository that provides addon packages not included in RedHat and Fedora Project. The software provided by RPM Fusion comes in the form of precompiled RPMs for current RHEL distributions such as Rocky, AlmaLinux, and CentOS as well as Fedora releases. You can use such repositories with package managers such as YUM and DNF. The goal of RPM is to provide as much add-on software as possible for RHEL and Fedora Project.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Linux systems RPM queries.
1. Enable EPEL repository
To get started, let's start on clean slate and check if RPM Fusion is installed:
$ dnf repolist | grep rpmfusion
If the output on the terminal is blank then PM Fusion is not installed.
To install EPEL package, run the below command:
$ sudo dnf install epel-release
Next, refresh the system repositories & update packages:
$ sudo dnf update
2. Add RPM Fusion repositories
RPM Fusion encompasses both free and non-free repositories. If you are an opensource fan, you will probably want to install and enable the free repository.
To do this, invoke the command:
$ sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
You can install the RPM Fusion non-free repository with the below command:
$ sudo dnf install https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
On the terminal, confirm that both the free and non-free repositories provided by RPM Fusion have been installed:
$ dnf repolist | grep rpmfusion
3. Search and Install software from RPM Fusion
Here, we will try something ambitious and try to install a software package from the free repository. First, you can search for its availability before installing. In this example, we are probing for the availability of the vlc software package:
$ sudo dnf repository-packages rpmfusion-free-updates list | grep -i vlc
To install the package execute the command:
$ sudo dnf install vlc-devel
4. Disable and enable RPM Fusion repositories
Suppose you have added the RPM Fusion repositories and you don't desire your system to use them.
To disable the repositories, install the yum-utils package:
$ sudo dnf install yum-utils
Once installed, you can disable the free repository as follows:
$ sudo yum-config-manager –-disable rpmfusion-free-updates
Thereafter, verify that the repository has been disabled and not avaiable to the system for use:
$ sudo yum repolist disabled | grep -i rpmfusion
If you feel the need to enable it again, execute the command:
$ sudo yum-config-manager –-enable rpmfusion-free-updates
To entirely remove the Free RPM Fusion repo, run the command:
$ sudo dnf remove rpmfusion-free-release -y
Likewise, execute the command shown to purge the non-free repository:
$ sudo dnf remove rpmfusion-nonfree-release -y
This article covers how to install RPM fusion on AlmaLinux 8 / Rocky Linux 8. In fact, RPM Fusion is a repository specifically for Fedora Linux which is an amalgamation of the software repositories Livna, Freshrpms, and Dribble to bundle resources.
How to Disable or Enable any repository like RPM Fusion from Rocky Linux 8 system ?
1. Install Yum Utils:
$ sudo dnf install yum-utils
2. Command syntax to enable or disable repo:
$ sudo yum-config-manager --disable repository-ID
3. To get the ID list the repositories using:
$ dnf repolist
Let's say we want to disable Fusion then the command will be:
$ sudo yum-config-manager --disable rpmfusion-free-updates
To enable the same in the future, use:
$ sudo yum-config-manager --enable rpmfusion-free-updates
4. To List, all the enabled and disabled repositories simply type:
$ dnn repolist all