Uname -a shows different kernel version than rpm



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

[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.



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