Install RPM Fusion that automatically stays up-to-date alongside future Fedora Silverblue releases

Image showing the (rather low-resolution) RPM Fusion logo on a white backdrop.

I'd like to show a slightly Inception looking way you can install RPM Fusion in a way that you don't have to worry about needing to remove-and-reinstall it with every Fedora update.

The issue lies with the "normal" method of installing RPM Fusion being specific to the currently installed version of Fedora. We'll remove this specificity by relying on the repository packages the RPM Fusion repository itself actually provides.

First, let's install both RPM Fusion free and nonfree repositories using their recommended way, if you've not done so already:

❯ sudo rpm-ostree install$(rpm -E %fedora).noarch.rpm$(rpm -E %fedora).noarch.rpm

Next, reboot your system. This is a required step.

Now, after rebooting, we'll both remove the specific package version we just installed and install the "automatic version matching" versions available from the RPM Fusion repositories, all in one fell swoop:

❯ sudo rpm-ostree update --uninstall $(rpm -q rpmfusion-free-release) --uninstall $(rpm -q rpmfusion-nonfree-release) --install rpmfusion-free-release --install rpmfusion-nonfree-release

And that's it. From now on, your RPM Fusion repositories will correctly update alongside your Fedora updates. Pretty neat, right?

I hope this helps!