Ask Your Question

Set default kernel and install specific version

asked 2019-02-18 10:08:25 -0500

revolucion09 gravatar image

updated 2019-02-18 10:41:42 -0500


on my system, kernel 4.18.16 works great but 4.20.8 is a complete disaster for me (slow boot, powertop does not work, dmg gives black screen, etc).

I have googled about this but all answers are very old (i.e. fedora 22 or older), can you help me do:

  1. Set a default grub entry to the kernel I am interested in
  2. Making sure such kernel version doesn't get deleted
  3. Find a way to install specific versions (I'd like to try 4.19.x)
  4. Repeat the above if happy with specific versions
  5. How to report a bad kernel? Some of the issues I have happen on other pcs as well.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-02-18 11:26:33 -0500

vmercuri gravatar image

updated 2019-02-18 11:50:04 -0500

Install grub-customizer. There's a convenient way to set the default entry in the General settings panel. Then make sure you update your grub configuration (I believe this is done automatically once you save the new settings, but I'm not sure). Otherwise, you can add these two lines to /etc/sysconfig/grub:


then update grub, so it will always remember the last choice. You can lock a kernel version with the versionlock plugin, which has to be installed (the package is python3-dnf-plugins-extras-versionlock):

sudo dnf versionlock add kernel-4.18.16-300.fc29

To remove the lock just run the same command with delete instead of add. If you also need to block any future update to the kernel you can add exclude=kernel* to your /etc/dnf/dnf.conf.

To install a specific kernel you need to download all the related packages from koji. For example:

koji download-build --arch=x86_64 kernel-4.19.15-300.fc29

provided that you have the koji package installed, this command alone will download the kernel* packages for the x86_64 architecture in this case, debug packages included. You can then install the ones you need from the command line with dnf just as usual.

To file a bug report about the kernel I'll suggest to just refer to the usual guidelines.

edit flag offensive delete link more



Awesome! btw, grub-customizer does not need further manual upgrade. It all works out of the box.

revolucion09 gravatar imagerevolucion09 ( 2019-02-18 12:18:05 -0500 )edit

Question Tools

1 follower


Asked: 2019-02-18 10:08:25 -0500

Seen: 224 times

Last updated: Feb 18 '19