Some multimedia packages and drivers are distributed outside Fedora's official repositories. Enabling RPM Fusion gives DNF access to additional software from repositories maintained by the RPM Fusion project.

RPM Fusion Free carries open-source software, including the full FFmpeg build. Nonfree carries software with more restrictive licenses and is only needed when it supplies a package you want.

An enabled third-party repository can supply packages during system updates. On a supported Fedora installation that uses DNF5 to manage system packages, Fedora provides copies of the RPM Fusion signing keys so DNF can authenticate the release package before enabling the repository.

Steps to enable RPM Fusion on Fedora:

  1. Install Fedora's distribution-gpg-keys package.

    If the Repository column shows a source other than fedora or updates for distribution-gpg-keys, decline the transaction.

    $ sudo dnf install distribution-gpg-keys
  2. Set the RPM Fusion collection in your current shell.
    $ collection=free

    Use collection=nonfree if you need the Nonfree collection. If you need both collections, repeat from this step with the other value.

  3. Import the signing key for the selected collection and Fedora release.

    Importing a key allows RPM to trust packages signed with it. This key comes from Fedora's distribution-gpg-keys package.

    $ sudo rpmkeys --import \
      "/usr/share/distribution-gpg-keys/rpmfusion/RPM-GPG-KEY-rpmfusion-$collection-fedora-$(rpm -E %fedora)"
  4. Install the signed release RPM for the selected collection.

    The release RPM adds an enabled package source. The transaction should show the matching rpmfusion-free-release or rpmfusion-nonfree-release package for your Fedora release, with @commandline in the Repository column. If the package or source differs or signature verification fails, stop.

    $ sudo dnf --setopt=localpkg_gpgcheck=1 install \
      "https://download1.rpmfusion.org/$collection/fedora/rpmfusion-$collection-release-$(rpm -E %fedora).noarch.rpm"

    rpm -E %fedora supplies your Fedora release number in both the key path and the URL. localpkg_gpgcheck=1 makes DNF check the signature on the release RPM fetched by URL.

  5. Verify that the selected collection's base and updates repositories are enabled.
    $ dnf repolist --enabled
    repo id                repo name
    ##### snipped #####
    rpmfusion-free         RPM Fusion for Fedora 45 - Free
    rpmfusion-free-updates RPM Fusion for Fedora 45 - Free - Updates
    ##### snipped #####

    Both repository IDs for your collection should appear under repo id. For Nonfree, look for rpmfusion-nonfree and rpmfusion-nonfree-updates.

Share this guide