RPM Fusion provides thousands of software packages that are not available in the official AlmaLinux repositories. You need these repositories to install multimedia codecs, graphics drivers and other tools that cannot be distributed through standard channels due to licensing restrictions.
You will install the EPEL repository first, verify RPM Fusion’s GPG keys and then enable both the free and non-free RPM Fusion repositories. Once complete, you can install packages from RPM Fusion using the standard dnf package manager.
EPEL (Extra Packages for Enterprise Linux) provides dependencies that many RPM Fusion packages require. You must install EPEL before adding RPM Fusion to your system.
sudo dnf install epel-releasesudo dnf updateYour system can now access packages from EPEL. Next, you will verify RPM Fusion’s GPG keys before installing the repositories.
GPG keys verify that packages come from RPM Fusion and have not been modified. You will install the key distribution package, import the keys and verify their fingerprints against the official values.
sudo dnf install distribution-gpg-keyssudo 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)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)Your system now has verified GPG keys for both RPM Fusion repositories. You can proceed to install the repository configuration packages.
The repository configuration packages tell your package manager where to find RPM Fusion packages. You will install both the free and non-free repositories in 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.rpmlocalpkg_gpgcheck=1 option ensures the downloaded packages are verified against the GPG keys you imported earlier.dnf repolistrpmfusion-free and rpmfusion-nonfree in the output.Your AlmaLinux system can now install packages from RPM Fusion. If the installation fails, verify that the GPG key fingerprints match the official values on the RPM Fusion keys page.
You have installed EPEL, verified RPM Fusion’s GPG keys and enabled both the free and non-free repositories. Your AlmaLinux system can now access thousands of additional packages through the standard dnf package manager.
Test your setup by searching for a package that is only available through RPM Fusion, such as dnf search ffmpeg. For more server configuration guides, see our articles on managing your VPS and installing the MERN stack on AlmaLinux. Our VPS hosting gives you full root access to configure your server exactly as you need.
Get scalable resources with our VPS hosting with root access and optional software.
Get VPS HostingPerfect for websites and small businesses unlimited bandwidth with cPanel hosting.
Get cPanel Hosting