Restore default repository schema

I some how (noob here) messed up the repository system and i want to repair to the default. Can i do that?

1 Like
dnf repolist

What is the output?


id do repo                                                                 nome do repo
fedora                                                                     Fedora 37 - x86_64
fedora-cisco-openh264                                                      Fedora 37 openh264 (From Cisco) - x86_64
fedora-modular                                                             Fedora Modular 37 - x86_64
google-chrome                                                              google-chrome
rpmfusion-free-updates-testing                                             RPM Fusion for Fedora 37 - Free - Test Updates
rpmfusion-nonfree-nvidia-driver                                            RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam                                                    RPM Fusion for Fedora 37 - Nonfree - Steam
updates                                                                    Fedora 37 - x86_64 - Updates
updates-modular                                                            Fedora Modular 37 - x86_64 - Updates

My problem is that after messing up the repos, i cant upgrade my system and i get

Error: Transaction test error


File conflict in all rpms downloads.

1 Like

Collect the full output and paste it to

sudo dnf config-manager --disable rpmfusion-free-updates-testing
sudo dnf clean all; sudo dnf distro-sync --refresh
1 Like

is there any way to direct the outpot to a text file?

You can append &> dnf.log in the end.

1 Like


1 Like

dnf distro-sync only syncs up the package versions but doesn’t check the contents of every package.

If you edited the repo files in /etc/yum.repos.d/, you can reinstall them:

# dnf reinstall fedora-repos fedora-repos-modular fedora-workstation-repositories
  • fedora-repos contains the files for these repos: fedora, fedora-cisco-openh264, updates, updates-testing
  • ...-modular is self-explanatory
  • fedora-workstation-repositories contains: google-chrome, rpmfusion-nonfree-nvidia-driver, rpmfusion-nonfree-steam

As for rpmfusion-free-updates-testing, it’s weird that you have that enabled but not rpmfusion-free and rpmfusion-free-updates. Generally you should not have the testing repos enabled.

If you intended to use RPMFusion, you can reinstall the RPMFusion repos following their instructions: Configuration - RPM Fusion

If that doesn’t resolve it, you may also need to enable/disable the repos:

# dnf config-manager --set-enabled rpmfusion-free rpmfusion-free-updates
# dnf config-manager --set-disabled rpmfusion-free-updates-testing

If you have any further issues, please include the exact steps you took and full error messages.

Unless there is a specific reason you need the testing repo I would also disable the
rpmfusion-free-updates-testing repo.

Those are proposed package updates that are still in testing status and may have issues. If they pass testing they will be released and moved to the updates repo. If they fail they will have changes then be tested again before final release.