Originally Posted by John VV
why the heck are you doing this
on CentOS 5.8 ????????????????
for cent 5.8 run
----- then run -------
yum reinstall kernel
yum install kernel-devel
you NEVER ever install a random kernel using rpm
there are many MANY scripts that need to run AFTER a kernel is replaced
please READ the rhel documentation and the CentOS wiki
-- the wiki is a MUST READ !!! --
Well, i need to explain my problem more and steps i made.
this is not a physical machine, its virtual server using openvz container in a node, and there is single shared kernel for all VPS'es on the node.
before a while i needed to install gcc compiler and couldn't, then i found the exclusion "/etc/yum.conf:exclude=kernel* glib*" so i removed both exclusion, and then compiler installed successfully.
and now i made yum update, yum install the latest package by default so devel and header got updated but the kernel is locked on the shared kernel "2.6.18-274.7.1.el5.028stab095.1"
so i need to get source, headers and devel for that version of kernel. and i don't know how.
Edit: problem solved, the following package
rpm -ivh http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab095.1/ovzkernel-devel-2.6.18-274.7.1.el5.028stab095.1.i686.rpm
Fixed my problem, hope other people having same issue find this...
Thank you all