Repository duplicate entries

When I try to install or update something, some repositories are duplicated:

$ sudo dnf install ./XXX.rpm
Copr repo for scrcpy owned by zeno              3.3 kB/s | 3.3 kB     00:01    
Copr repo for scrcpy owned by zeno               25 kB/s | 9.4 kB     00:00    
Fedora 35 - x86_64 - Updates                     25 kB/s |  19 kB     00:00    
Fedora 35 - x86_64 - Updates                    1.5 MB/s | 2.6 MB     00:01    
Fedora Modular 35 - x86_64 - Updates             33 kB/s |  19 kB     00:00    
Fedora Modular 35 - x86_64 - Updates             67 kB/s |  84 kB     00:01    
packages for the GitHub CLI                      17 kB/s | 3.0 kB     00:00    
RPM Fusion for Fedora 35 - Free - Updates        15 kB/s | 3.6 kB     00:00    
RPM Fusion for Fedora 35 - Nonfree - NVIDIA Dri  10 kB/s | 4.1 kB     00:00    
RPM Fusion for Fedora 35 - Nonfree - Steam       18 kB/s | 3.9 kB     00:00    
RPM Fusion for Fedora 35 - Nonfree - Updates     10 kB/s | 4.0 kB     00:00    
WineHQ packages                                  15 kB/s | 3.2 kB     00:00    
Dependencies resolved.

as you can see, some repositories, like Fedora 35 - x86_64 - Updates or Fedora Modular 35 - x86_64 - Updates are being duplicated.

Why is that?

You could check if your repositories really are duplicated by running dnf repolist.

If you’re using Gnome, you can open Gnome Software Center, then on top left you can find hamburger menu. Open it and click Software Repositories then make the change as you like.

You should also be careful. Having both the rpmfusion-nonfree-nvidia-driver repo and the rpmfusion-nonfree repo enabled at the same time can cause conflicts with packages. The two are not always in sync with nvidia driver packages and versions.

IME I always prefer the nonfree vs the nonfree-nvidia-driver version.