Issues with nonfree ffmpeg and RPM Fusion in Fedora 41

Hi everyone. I’ve been unsuccessfully trying to install the non-free version of ffmpeg in a Fedora 41 template. The package is usually offered in the RPM Fusion repos, which I can’t seem to either install or enable.

I tried the installing the repos the way it’s shown in the Qubes documentation, but the dnf config-manager threw “Unknown argument” errors. Then, I tried following the Fedora docs instructions, and it seemed to have installed the repos, but when I search for the ffmpeg package (dnf search ffmpeg), I only get ffmpeg-free-releated packages. Additionally, the output of dnf repolist doesn’t include any of the RPM Fusion repos.

I tried reinstalling the RPM Fusion repos, but dnf claims they’re already installed, which leads me to believe they need to be enabled in some other way.

I would appreciate any insight on how to solve this issue. And happy new year!

There’s a new syntax in Fedora 41:

sudo dnf config-manager setopt REPOSITORYNAME.enabled=1

It’s also possible to enable the repositories by editing /etc/dnf/repos.override.d/99-config_manager.repo

That did it, thank you!