How to install RPM Fusion on AlmaLinux

By Angus Published 3 March 2025 Updated 4 March 2026 4 min read

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.

Before you begin

  • You need root access or sudo privileges on your AlmaLinux system.
  • Your server must have an active internet connection.

Install the EPEL repository

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.

  1. Install the EPEL repository.
    Run the following command to add EPEL to your system:
    sudo dnf install epel-release
  2. Update your repository metadata.
    This ensures your package manager recognises the newly added repository:
    sudo dnf update

Your system can now access packages from EPEL. Next, you will verify RPM Fusion’s GPG keys before installing the repositories.

Install and verify RPM Fusion GPG keys

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.

  1. Install the distribution GPG keys package.
    This package contains GPG keys for various third-party repositories:
    sudo dnf install distribution-gpg-keys
    If prompted to import a GPG key during installation, verify it matches the fingerprints listed on the official RPM Fusion keys page.
  2. Import the free repository key.
    This key verifies packages from the free RPM Fusion repository:
    sudo rpmkeys --import /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-free-el-$(rpm -E %rhel)
  3. Import the non-free repository key.
    This key verifies packages from the non-free RPM Fusion repository:
    sudo rpmkeys --import /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-nonfree-el-$(rpm -E %rhel)
  4. Verify the free repository key fingerprint.
    Compare the output to the fingerprint on the RPM Fusion keys page:
    gpg --show-keys --with-fingerprint /usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-free-el-$(rpm -E %rhel)
  5. Verify the non-free repository key fingerprint.
    Compare this output to the non-free fingerprint on the same page:
    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.

Install RPM Fusion repositories

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.

  1. Install both repository packages.
    Run the following command to add the free and non-free repositories:
    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

    The localpkg_gpgcheck=1 option ensures the downloaded packages are verified against the GPG keys you imported earlier.
  2. Verify the installation.
    List your enabled repositories to confirm RPM Fusion appears:
    dnf repolist
    You should see rpmfusion-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.

Wrapping up

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.

Need more power?

Get scalable resources with our VPS hosting with root access and optional software.

Get VPS Hosting

Starting something new?

Perfect for websites and small businesses unlimited bandwidth with cPanel hosting.

Get cPanel Hosting