First you need to download the latest stable kernel.
You can check it at http://kernel.org/.
Download it :
root@server [~]# cd /usr/local/src/
root@server [~]# wget http://www.kernel.org/pub/linux/kernel/v2.6/
Select latest Kernel and download it
root@server [~]# tar –zxvf linux-2.6.28.tar.gz
root@server [~]#cd linux-2.6.28
root@server [~]# make clean
root@server [~]# make mrproper
root@server [~]# uname -r
root@server [~] # cp /boot/config-‘uname -r’ .config
root@server [~] # make oldconfig
root@server [~] # make menuconfig
root@server [~] # make
root@server [~] # make modules_install
root@server [~] # make install
root@server [~] # grubby –bootloader-probe
root@server [~] # pico /etc/grub.conf Change the default as per the entry for your new kernel.
root@server [~]# reboot
Some time after reboot server it won’t up and running with the new kennel due to that before rebooting server, make following
changes.
root@server [~]#grub
Above command will give you grub prompt.
grub > savedefault –default=0 –once
grub>quit
root@server [~]#reboot
If server is up and running after reboot you can set new kernel as default server in grub.conf file.
root@server [~]#pico /boot/grub/grub.conf
Set
default=1
to
default=0