I’m having some problems on my machine (with kernel 5.2.9) and someone here advised me to downgrade to 5.1.x, but I’m not sure how to do it.
I found the list of all available kernels here and saw that the latest 5.1 is 5.1.20. Now I’m not sure:
From which category? (x86_64?)
Which specific RPMs? There’s a long list
How do I install them? Simply RPM install will downgrade the kernel? Do I need to dnf remove something first?
After I’ve installed, how do I setup grub to load that specific verison?
That depends on your CPU architecture, but more than likely you have an x86 64 bits system, so Yes.
That depends on what kernel packages are installed (required) on your system. Find out the currently installed kernel packages with following command. Then download the same ones from the older kernel version:
rpm -qa "kernel*"
go to the directory where you downloaded them, then simply run sudo dnf install kernel-5.x-...
dnf will take care of that. there is a post-install script that will automatically update grub.
One small correction. As far as I know, grub will default to the latest kernel you have, not to the 5.1.X you’ve installed manually. It will add 5.1.X to the boot menu, and you can select it manually on each boot.
To make older kernel a default one for grub you should either use grubby (I’ve never done it this way):
OK I successfully downgraded to 5.1.20.
I used rpm -i <file>.rpm on all the RPMs I downloaded.
After the installation I ran grubby --default-kernel and found out the default was changed to the kernel I just installed.