Installing software beyond the official AlmaLinux repositories often requires third-party sources. Two of the most widely used repositories that provide additional tools, utilities, and multimedia support (such as codecs) for Enterprise Linux systems are:
Before installing RPM Fusion, you must install the EPEL repository. This provides the necessary dependencies for many RPM Fusion packages.
To install EPEL, run:
sudo dnf install epel-release
Once installed, update your repositories:
sudo dnf update
Before installing RPM Fusion packages, you need to verify their authenticity by importing and validating the official GPG keys.
sudo dnf install distribution-gpg-keys
If prompted to import a GPG key, verify it using the GPG keys page.
Import both the free and non-free GPG keys:
sudo rpmkeys --import /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-free-el-$(rpm -E %rhel)
sudo rpmkeys --import /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-el-$(rpm -E %rhel)
You can compare the key fingerprints to the ones listed on RPM Fusion keys.
gpg --show-keys --with-fingerprint /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-free-el-$(rpm -E %rhel)
gpg --show-keys --with-fingerprint /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-el-$(rpm -E %rhel)
Install both the free and non-free repositories with a single command:
sudo dnf --setopt=localpkg_gpgcheck=1 install \ https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm \ https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
If the installation fails, ensure that the GPG keys imported earlier are correct.