How To be sure you have latest .repo file configuration


  • OpenMandriva Lx version:

OM Lx 4.2, Rock, Rolling, and Cooker (Rolling and Cooker users should be able to figure out what to do from the Rock example.)

  • Desktop environment (KDE, LXQT…):


  • Description of the issue (screenshots if relevant):

Users doing system upgrade from OM Lx 4.1 to Lx 4.2 tend to accept the defaults at the end of the dnf distro-sync --allowerasing process. This results in your system keeping the old .repo files using the old, less desirable, mirror list instead of the shiny new Mirrobits our Infra gurus have created. (Thanks @raphael for his work on this improvement.)

  • Relevant informations (hardware involved, software version, logs or output…):

Note: This is an example. Where user creates the ‘save’ folder is optional. I am attempting to keep this explanation simple for less technical users.

To ensure that you have the latest configuration for your .repo files and are using the new Mirrorbits you may do the following. Mirrorbits offers considerable advantages over the old mirror list method. First we create a folder to save the old .repo files just in case there is some problem.

$ mkdir ~/Downloads/yum.repos.d.backup

Then you will have this:

Now we copy the current .repo files to the new folder and forget them unless there is an issue:

$ sudo cp /etc/yum.repos.d/openmandriva* ~/Downloads/yum.repos.d.backup

Now all the old .repo files are in ~/Downloads/yum.repos.d.backup and we will delete the .repo files in /etc/yum.repos.d so we can create new ones:

$ sudo rm -rf /etc/yum.repos.d/openmandriva*

Now if you look in /etc/yum.repos.d it should be empty. Do not worry that is what we want. Next we put shiny all new .repo files in that folder but installing the package distro-release-repos. Example for Rock systems:

For Rock/x86_64:

$ sudo rpm -Uvh --force

For Rock/znver1:

$ sudo rpm -Uvh --force

Note: distro-release packages are different for each version/branch of OM Lx. Be sure you are installing the correct package for your system. If you do not know ask.

Now configure your repositories to your own needs.

You can also have a view of our mirror status at our Mirrorstats. You can see which mirros Mirrobits uses for you at our Mirrorbits.

As always should you encounter any issues please ask us in a new thread with a title descriptive of your issue and some detailed information. Or ask us at #openmandriva @ Libera.Chat IRC. For IRC matrix alternative select Chat here.

Hoping some users find the useful or helpful. :thinking:

1 Like

This is an example of what the new configuration .repo files look like using Rock/znver1 system as an example:

openmandriva-rock-znver1.repo.txt (12.3 KB)

Compare that to your .repo file to see if this procedure is necessary. The critical point it the baseurl configuration. The new files have:


The is the Mirrobits re-director. is provided as a backup should there be a problem with the Mirrorbits. The files are written to always use first. We do this to reduce the load on our ABF server. But this is also done in such a way that users gets the latest package according to the metadata at All of which makes this a superior alternative to our old mirror list.

1 Like