Ask Your Question

How to delete the same kernel?

asked 2018-09-26 06:35:19 -0600

bma gravatar image

Hello, I am new to Fedora. After some installations I've got two same kernels of same versions. They are displayed on GRUB startup and Package List. How can I clean up one?

bma@LenovoPC:~$ dnf list --installed | grep kernel
abrt-addon-kerneloops.x86_64           2.10.10-1.fc28                   @updates
kernel.x86_64                          4.18.8-200.fc28                  @updates
kernel.x86_64                          4.18.9-200.fc28                  @updates
kernel-core.x86_64                     4.18.8-200.fc28                  @updates
kernel-core.x86_64                     4.18.9-200.fc28                  @updates
kernel-devel.x86_64                    4.18.9-200.fc28                  @updates
kernel-headers.x86_64                  4.18.9-200.fc28                  @updates
kernel-modules.x86_64                  4.18.8-200.fc28                  @updates
kernel-modules.x86_64                  4.18.9-200.fc28                  @updates
kernel-modules-extra.x86_64            4.18.8-200.fc28                  @updates
kernel-modules-extra.x86_64            4.18.9-200.fc28                  @updates
libreport-plugin-kerneloops.x86_64     2.9.5-1.fc28                     @updates
edit retag flag offensive close merge delete



No, you do not have two kernels with same version: one is 4.18.8, the other is 4.18.9.

I would strongly advise not to delete the second (older) kernel. In case something doesn’t work with the other one, you will be happy to have a fallback kernel installed.

Here is a neat rpm query command to check what kernel packages you have installed: rpm -qa kernel. (shows the kernel meta package only, if you want to see all, run rpm -qa kernel-*)

florian gravatar imageflorian ( 2018-09-26 09:17:21 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-09-26 08:35:12 -0600

villykruse gravatar image

The 4.18.8-200.fc28 version is kept just in case that the new 4.18.9-200.fc28 version doesn't work properly. By default, dnf will keep the last three kernel versions and when installing the forth one it will remove the old one.

To remove the old 4.18.8-200.fc28 you can run

dnf remove kernel-devel-4.18.8-200.fc28.x86_64 kernel-4.18.8-200.fc28.x86_64 kernel-modules-4.18.8-200.fc28.x86_64 kernel-core-4.18.8-200.fc28.x86_64
edit flag offensive delete link more

Question Tools


Asked: 2018-09-26 06:35:19 -0600

Seen: 126 times

Last updated: Sep 26 '18