Typing rpm -qa kernel on CentOS terminal only shows kernel version - 3.10.0-957.5.1.el7.x86_64 but I do have 4.20.12-1.el7.elrepo.x86_64 also installed and currently running.

$ rpm -qa kernel
$uname -a
Linux SJFW4-H44 4.20.12-1.el7.elrepo.x86_64 #1 SMP Sat Feb 23 09:15:50 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

Why is that the case? How do I fix it or any reliable alternative commands available?

  • Add some example output of rpm -qa kernel together with uname -a and grub config ? – steve Mar 8 at 9:31
  • @steve: Please see the screenshot attached in the answer section. Thanks for your time – Kstar174 Mar 12 at 21:59
  • Check your grub config. Will likely list various kernels this box can boot from. – steve Mar 12 at 22:04
  • @steve: I can boot from either kernels during startup of the machine but not sure why rpm -qa kernel command shows only older version although I have 4.20 (higher version) installed. – Kstar174 Mar 12 at 22:07
  • Because a kernel package doesn't have to be named kernel. 4.20 must belong to some rpm lacking the name kernel.... – steve Mar 12 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.