Uname -a shows different kernel version than rpm


#1

Hi,

OS: CentOS 6.8

I am preparing system for freepbx installation and package dahdi needs kernel headers and devel packages. But when I try to install kernel-headers and devel packages then system says they are already installed and latest. Upon checking I found that kernel version and headers version is different

[root@voip ~]# rpm -qa | grep -i kernel
abrt-addon-kerneloops-2.0.8-40.el6.centos.x86_64
kernel-firmware-2.6.32-642.6.1.el6.noarch
kernel-2.6.32-642.6.1.el6.x86_64
libreport-plugin-kerneloops-2.0.9-32.el6.centos.x86_64
dracut-kernel-004-409.el6_8.2.noarch
kernel-headers-2.6.32-642.6.1.el6.x86_64

[root@voip ~]# uname -a
Linux voip.secureserver.net 2.6.32-042stab092.3 #1 SMP Sun Jul 20 13:27:24 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@voip ~]#

[root@voip ~]# yum install kernel-headers
Package kernel-headers-2.6.32-642.6.1.el6.x86_64 already installed and latest version
(same is with kernel-devel.)

[root@voip ~]# ls -l /boot/
total 31752
-rw-r–r-- 1 root root 108107 Oct 4 17:41 config-2.6.32-642.6.1.el6.x86_64
drwxr-xr-x 3 root root 4096 Oct 11 00:36 efi
drwxr-xr-x 2 root root 4096 Mar 22 2016 grub
-rw------- 1 root root 25282851 Oct 11 00:40 initramfs-2.6.32-642.6.1.el6.x86_64.img
-rw-r–r-- 1 root root 215530 Oct 4 17:41 symvers-2.6.32-642.6.1.el6.x86_64.gz
-rw-r–r-- 1 root root 2618532 Oct 4 17:41 System.map-2.6.32-642.6.1.el6.x86_64
-rwxr-xr-x 1 root root 4269008 Oct 4 17:41 vmlinuz-2.6.32-642.6.1.el6.x86_64

System has cpanel and related libraries also installed . Can someone please shed some light on it that why its like this? I have googled around but haven’t found a solution.

Many Thanks.


#2

Hi

What kind of machine it is virtual or physical or …? and your machine is running out of CentOS kernel.
Do one thing reboot the server and shift to latest kernel by breaking the boot processes or changing the default value in grub.conf file

and also once share the content of grub.conf file