Where is my kernel ? [SOLVED]
Where is my kernel ? [SOLVED]
Hi everyone,
I updated my kernel from kernel-3.10.0-1127.19.1.el7.x86_64 to kernel-5.9.8-1.el7.elrepo.x86_64 x86_64
I would like to remove few old kernel.
However when I enter the command "rpm -qa kernel"
It doesn't show the running kernel, even with a reboot.
By the way, I am sure that the running kernel is the new one since when I enter the command "uname -smr" I got the correct answer.
Do you know why ?
Thanks
Antoine
I updated my kernel from kernel-3.10.0-1127.19.1.el7.x86_64 to kernel-5.9.8-1.el7.elrepo.x86_64 x86_64
I would like to remove few old kernel.
However when I enter the command "rpm -qa kernel"
It doesn't show the running kernel, even with a reboot.
By the way, I am sure that the running kernel is the new one since when I enter the command "uname -smr" I got the correct answer.
Do you know why ?
Thanks
Antoine
Last edited by AntoineL on 2020/11/19 23:00:25, edited 1 time in total.
Re: Where is my kernel ?
Hello toracat,
Well it works thanks.
What does it mean then?
Thanks
Antoine
Well it works thanks.
What does it mean then?
Thanks
Antoine
Re: Where is my kernel ?
You show us the output and we might be able to tell you.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Where is my kernel ?
on my centos 7 it works
rpm -qa kernel
kernel-3.10.0-1160.el7.x86_64
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-514.10.2.el7.x86_64
kernel-3.10.0-693.2.2.el7.x86_64
kernel-3.10.0-514.21.1.el7.x86_64
So should work for you too
rpm -qa kernel
kernel-3.10.0-1160.el7.x86_64
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-514.10.2.el7.x86_64
kernel-3.10.0-693.2.2.el7.x86_64
kernel-3.10.0-514.21.1.el7.x86_64
So should work for you too
Re: Where is my kernel ?
In answer to the original question, as root or sudo will delete the oldest kernels and leave the most recent 3
To keep a maximum of 3 edit /etc/yum.conf line, to installonly_limit=3
Code: Select all
package-cleanup --oldkernels --count=3
To keep a maximum of 3 edit /etc/yum.conf line, to installonly_limit=3
Re: Where is my kernel ?
Hi all,
Trevor and kdpatil,
If I run: rpm -qa kernel
Here is what I get:
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-327.36.3.el7.x86_64
kernel-3.10.0-1127.19.1.el7.x86_64
If I run: rpm -qa kernel\* | sort
Here is what I get:
kernel-3.10.0-1127.19.1.el7.x86_64
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-327.36.3.el7.x86_64
kernel-devel-3.10.0-1127.19.1.el7.x86_64
kernel-devel-3.10.0-1160.2.2.el7.x86_64
kernel-headers-3.10.0-1160.2.2.el7.x86_64
kernel-lt-4.4.243-1.el7.elrepo.x86_64
kernel-ml-5.8.5-1.el7.elrepo.x86_64
kernel-ml-5.9.8-1.el7.elrepo.x86_64
kernel-tools-3.10.0-1160.2.2.el7.x86_64
kernel-tools-libs-3.10.0-1160.2.2.el7.x86_64
If I run: uname -sr
Linux 5.9.8-1.el7.elrepo.x86_64
I can't get why I can't see my running kernel with rpm...
bonedome,
Thanks you for the help, actually I knew how to delete, the original question was more, why can't I see my running kernel with "rpm -qa kernel".
Thanks again all,
Antoine
Trevor and kdpatil,
If I run: rpm -qa kernel
Here is what I get:
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-327.36.3.el7.x86_64
kernel-3.10.0-1127.19.1.el7.x86_64
If I run: rpm -qa kernel\* | sort
Here is what I get:
kernel-3.10.0-1127.19.1.el7.x86_64
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-327.36.3.el7.x86_64
kernel-devel-3.10.0-1127.19.1.el7.x86_64
kernel-devel-3.10.0-1160.2.2.el7.x86_64
kernel-headers-3.10.0-1160.2.2.el7.x86_64
kernel-lt-4.4.243-1.el7.elrepo.x86_64
kernel-ml-5.8.5-1.el7.elrepo.x86_64
kernel-ml-5.9.8-1.el7.elrepo.x86_64
kernel-tools-3.10.0-1160.2.2.el7.x86_64
kernel-tools-libs-3.10.0-1160.2.2.el7.x86_64
If I run: uname -sr
Linux 5.9.8-1.el7.elrepo.x86_64
I can't get why I can't see my running kernel with rpm...
bonedome,
Thanks you for the help, actually I knew how to delete, the original question was more, why can't I see my running kernel with "rpm -qa kernel".
Thanks again all,
Antoine
Re: Where is my kernel ?
Most likely because the rpm is called "kernel-ml" and not "kernel".
Re: Where is my kernel ?
AntoineL wrote: ↑2020/11/18 22:21:53Hi all,
Trevor and kdpatil,
If I run: rpm -qa kernel
Here is what I get:
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-327.36.3.el7.x86_64
kernel-3.10.0-1127.19.1.el7.x86_64
If I run: rpm -qa kernel\* | sort
Here is what I get:
kernel-3.10.0-1127.19.1.el7.x86_64
kernel-3.10.0-1160.2.2.el7.x86_64
kernel-3.10.0-327.36.3.el7.x86_64
kernel-devel-3.10.0-1127.19.1.el7.x86_64
kernel-devel-3.10.0-1160.2.2.el7.x86_64
kernel-headers-3.10.0-1160.2.2.el7.x86_64
kernel-lt-4.4.243-1.el7.elrepo.x86_64
kernel-ml-5.8.5-1.el7.elrepo.x86_64
kernel-ml-5.9.8-1.el7.elrepo.x86_64
kernel-tools-3.10.0-1160.2.2.el7.x86_64
kernel-tools-libs-3.10.0-1160.2.2.el7.x86_64
If I run: uname -sr
Linux 5.9.8-1.el7.elrepo.x86_64
I can't get why I can't see my running kernel with rpm...
bonedome,
Thanks you for the help, actually I knew how to delete, the original question was more, why can't I see my running kernel with "rpm -qa kernel".
Thanks again all,
Antoine
if you all ok , edit the topic & add [SOLVED] .. that will help other as they need
Re: Where is my kernel ?
Tunk,
Well that makes sense now
Thanks a lot
Best,
Antoine
Well that makes sense now
Thanks a lot
Best,
Antoine