Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Enable Third Party Repos and Multimedia in Fedora

· 6 min read · Home Tech

In this article
  1. Why Fedora Lacks Multimedia Codecs by Default
  2. What Are Third-Party Repositories?
  3. Step-by-Step: Adding RPM Fusion
  4. Installing Multimedia Codecs
  5. Choosing Between RPM Fusion and Other Sources
  6. Common Problems and Fixes
  7. Safety and Maintenance
  8. Frequently Asked Questions

To enable third-party repositories and multimedia codecs in Fedora, you need to add the RPM Fusion free and nonfree repositories, then install the codec packages they provide. This gives you access to software like VLC, MP3 playback, and H.264 video that Fedora's default repositories omit for licensing reasons.

Why Fedora Lacks Multimedia Codecs by Default

Fedora is a community-developed Linux distribution sponsored by Red Hat. Its core repositories only include software that meets strict free-software guidelines. Many popular multimedia codecs—such as MP3, H.264, and AAC—are patented, and their inclusion would violate Fedora's licensing policy. As a result, a fresh Fedora installation can play open formats like Ogg Vorbis and WebM, but not the proprietary formats most websites and media files use.

This is not a technical limitation; it is a deliberate legal choice. Fedora's maintainers prioritize software freedom and legal safety over out-of-the-box multimedia compatibility. The solution is to add third-party repositories that host the patented codecs and other non-free software, the most widely used being RPM Fusion.

What Are Third-Party Repositories?

A repository is a server or collection of servers that distribute software packages for your system. Fedora's default repositories are maintained by the Fedora Project. Third-party repositories are maintained by independent groups or companies and offer software that Fedora cannot or will not include.

  • RPM Fusion – The most popular third-party repo for Fedora, split into 'free' (open-source but patent-encumbered) and 'nonfree' (proprietary) sections.
  • Google Chrome repo – Official Google repository for the Chrome browser.
  • Microsoft VS Code repo – Official Microsoft repository for Visual Studio Code.
  • NVIDIA CUDA repo – Official NVIDIA repository for CUDA and GPU drivers.

RPM Fusion is the go-to for multimedia because it packages codecs like ffmpeg, libavcodec, and VLC, as well as firmware and other non-free utilities.

Step-by-Step: Adding RPM Fusion

RPM Fusion provides two main repositories: 'free' and 'nonfree'. You need both for full multimedia support. The installation is done via the command line using DNF, Fedora's package manager.

  1. Open a terminal (Ctrl+Alt+T).
  2. Install the free repository with the command: sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
  3. Install the nonfree repository: sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  4. Update your package lists: sudo dnf update

The $(rpm -E %fedora) part automatically inserts your Fedora version number, so the same command works on any supported release. After this, you can search for and install multimedia packages normally.

Installing Multimedia Codecs

Once RPM Fusion is enabled, you can install the codec packages. The simplest way is to install the 'multimedia' group, which pulls in a comprehensive set of codecs and libraries.

sudo dnf groupinstall multimedia

For hardware acceleration, you may also want to install the 'sound-and-video' group and the FFmpeg package:

sudo dnf install ffmpeg

FFmpeg is a command-line tool and library that handles almost every audio and video format. Installing it also brings in libavcodec, which many applications like VLC and GStreamer use. After installation, you can play MP3, H.264, and other proprietary formats in most media players.

Choosing Between RPM Fusion and Other Sources

RPM Fusion is not the only option. Some users prefer to use Flatpak versions of media apps, which bundle their own codecs. For example, the Flatpak version of VLC from Flathub includes all necessary codecs and does not require RPM Fusion. Similarly, the Firefox Flatpak from Flathub includes proprietary codecs like H.264 and AAC.

However, RPM Fusion is still the most comprehensive solution for system-wide codec support. It integrates with the system's GStreamer framework, which is used by many GNOME applications. If you only need a few specific apps, Flatpak may be simpler and safer, as it isolates the codecs from the rest of the system.

For other third-party repos like Chrome or VS Code, you can add them via the GNOME Software app or by downloading the .rpm files from the official websites. These repos are independent and do not conflict with RPM Fusion.

Common Problems and Fixes

Users often encounter a few issues when enabling third-party repos. Here are the most common ones and how to resolve them.

  • GPG key error – If DNF complains about a missing GPG key, run sudo dnf install rpmfusion-free-release again; the key is usually installed automatically. If not, you can manually import it with sudo rpm --import followed by the key URL.
  • DNF conflict – Sometimes packages from RPM Fusion conflict with Fedora's default packages. The usual fix is to run sudo dnf distro-sync to realign packages.
  • Missing codecs after install – If a media player still cannot play a file, you may need to install additional packages like gstreamer1-plugins-bad-free-extras or gstreamer1-plugins-ugly. The 'multimedia' group should include these, but you can install them individually if needed.
  • Fedora version mismatch – If you are using a pre-release or an older version, the RPM Fusion URL may not work. Check that your Fedora version is still supported and that you are using the correct repository URL.

Safety and Maintenance

Adding third-party repositories increases the risk of installing untrusted software, so it is important to only enable well-known repos like RPM Fusion, Google, and Microsoft. RPM Fusion is community-run and widely trusted, but it is not officially supported by Fedora. You should always verify the integrity of packages by checking GPG signatures, which DNF does automatically.

To keep your system stable, regularly update all packages with sudo dnf update. When upgrading to a new Fedora release, you must re-enable the RPM Fusion repositories for the new version, as the old ones may not work. The Fedora Project provides a guide for upgrading with third-party repos enabled.

Frequently Asked Questions

Is it safe to enable RPM Fusion?

Yes, RPM Fusion is a well-established community repository that has been around for over a decade. It is widely used by Fedora enthusiasts and is considered safe, but it is not officially supported by Fedora. Always keep your system updated and only install packages from trusted sources.

Do I need both free and nonfree RPM Fusion repos?

For most multimedia needs, yes. The free repo contains open-source software that is patent-encumbered, like FFmpeg and many codecs. The nonfree repo contains proprietary software like NVIDIA drivers and Steam. If you only want codecs, the free repo is sufficient, but the nonfree repo is often needed for firmware and other utilities.

Will enabling third-party repos break my system?

It can cause conflicts if you install incompatible packages, but in practice, RPM Fusion is well-tested and conflicts are rare. If you encounter issues, you can disable the repos with sudo dnf config-manager --set-disabled rpmfusion-free rpmfusion-nonfree and remove the installed packages.

Can I use Flatpak instead of RPM Fusion?

Yes, Flatpak apps from Flathub often include proprietary codecs in their sandbox, so you can play multimedia without enabling RPM Fusion. This is a cleaner approach for individual apps, but it does not provide system-wide codec support for all applications.

What about patent laws?

In some countries, using patented codecs may require licensing fees. RPM Fusion distributes these codecs for free, which may be a legal gray area in certain jurisdictions. This is why Fedora does not include them by default. Users are responsible for ensuring they comply with local laws.

How do I remove RPM Fusion?

To remove the repositories, run sudo dnf remove rpmfusion-free-release rpmfusion-nonfree-release. This will not remove the packages you installed, but you can uninstall those separately with sudo dnf remove followed by the package names.