How to upgrade OpenMandriva Lx 4.2 to Rolling full process with screenshots

Notes:
– For this how-to I installed the most recent unofficial Plasma 4.2 x86_64 ISO build 214

– I will fully update the 4.2/Rock system first, so to have the same situation as users who did update regularly their system have at the date of writing.

Here is the start point

Update your 4.2/Rock system

$ sudo dnf clean all ; dnf clean all ; dnf repolist
$ sudo dnf --refresh upgrade

Open Software Repository Selector (om-repo-picker)
Disable all additional repository you may have enabled

Clean dnf cache from any possible leftover and refresh repolist
$ sudo dnf clean all ; dnf clean all ; dnf repolist

Go back to Software Repository Selector > Update channel > Select Rolling

then OK

Enter your password when asked

$ sudo dnf clean all ; dnf clean all ; dnf repolist
You should read only Rolling main repo

Run command to distro-sync:

$ sudo dnf --refresh --allowerasing distro-sync

The distro-sync process will take a while, let it work

At the end of the process the script will ask you some questions.
Accepting the default by just hit ‘Enter’ is usually safe.

It is recommended to pay particular attention to the questions regarding the files

/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow

For these files you want to be sure the script will keep the existing version.

“Default action is to keep your current version”

[default=N]

.

The upgrade from 4.2/Rock to Rolling at this moment will most likely imply that you encounter bug 2687
(as well as some Rolling systems not regularly updated for a long time)

Quick check

$ dnf clean all
or $ sudo dnf clean all

If so, run the following commands:

$ sudo ln -s /usr/lib64/libicudata.so.69.1 /usr/lib64/libicudata.so.68.2
$ sudo ln -s /usr/lib64/libicui18n.so.69.1 /usr/lib64/libicui18n.so.68.2
$ sudo ln -s /usr/lib64/libicuuc.so.69.1 /usr/lib64/libicuuc.so.68.2

and check again
$ sudo dnf clean all

console should not display the error anymore

Now run commands

$ rpm -qa|grep ufw
$ rpm -qa|grep firewall

Normally you will find two firewalls installed, one is coming from 4.2 and the other from Rolling upgrade
You want at max one of them, so remove the useless ufw

$ sudo dnf remove ufw

Logout and reboot to your new Rolling system

Open Software Repository Selector and enable your favorite additional repository if you need to

$ sudo dnf clean all ; dnf clean all ; dnf repolist

The repository list now will display all your favorite additional repository enabled

It’s now time to distro-sync them too

$ sudo dnf --refresh --allowerasing distro-sync

Here I got “Nothing to do” as I did not have any package installed from additional repository


:warning: Important notice:

from now on, as a Rolling system user, you must always run the following command to keep your Rolling system up-to-date:

$ sudo dnf clean all ; dnf clean all ; dnf repolist ; sudo dnf --allowerasing distro-sync

DO NOT use sudo dnf upgrade. Never.
DO NOT use Discover to update the system. Never.
DO NOT use dnfdragora to update the system. Never.