VPS Hosting

VPS Hosting

Buy Now

How to Install EPEL and RPM Fusion on AlmaLinux

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:

  • EPEL (Extra Packages for Enterprise Linux)
  • RPM Fusion

Install EPEL

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

Install and Verify RPM Fusion GPG Keys

Before installing RPM Fusion packages, you need to verify their authenticity by importing and validating the official GPG keys.

Install Distribution GPG Keys

sudo dnf install distribution-gpg-keys

If prompted to import a GPG key, verify it using the GPG keys page.

Import RPM Fusion Keys

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)

Verify Imported Keys

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 RPM Fusion Repositories

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.