How do I install an old kernel?

Hello,

Ever since I upgraded my kernel to 5.2.x, I have been having issues with graphics. There is an associated bugzilla ticket: 1739863 – Kernel 5.2+ amdgpu graphics glitches using XFCE
Unfortunately all my installed kernels are at 5.2.x and so far the graphics issue remains. Is there a way to reinstall kernel 5.1.x?
I did try to lock the 5.1.x kernel prior to updating using the dnf versionlock plugin but it would fail because it would fail to find kernel packages.

Thanks!

2 Likes

You can find a list of all kernels built for Fedora 35 here: https://bodhi.fedoraproject.org/updates/?packages=kernel&release=F35 (There you can select a kernel and click on Builds).

You can download all kernels that have been built from here: https://koji.fedoraproject.org/koji/packageinfo?packageID=8.

Then, simply use dnf to install them.

Alternatively, you can use koji download-build -- arch=x86_64 <package-name> to download the package directly, no browsing involved. I would recommend that method.

Here is an example:
1.) mkdir -p kerneldownload
2.) cd kerneldownload
3.) koji download-build --arch=x86_64 kernel-5.16.18-200.fc35
4.) sudo dnf install ./kernel-*

11 Likes

Thanks for the reply florian!
I followed the koji instructions and I was able to install the 5.1.x kernel.
Appreciate the help!

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.