In the CentOS platform based work process, it is unavoidable sometimes need to upgrade or downgrade the kernel to verify functionality, debug performance or update the entire system.
If it takes time and effort to recompile a kernel from scratch, and with more complex kernel features and a lot of dependent libraries or tools, it is essential to find a simple upgrade kernel approach.
Here is the simplest method I have ever practiced. System environment:
CentOS 6.6 x86_64
1: View System version
# Uname-r
2.6.32-573.12.1.el6.x86_64
2: Update the kernel
# yum-y Install kernel
3: Reboot the system
# reboot
4: See if the new kernel is enabled
# Uname-r
2.6.32-642.3.1.el6.x86_64
5: Can remove the old kernel save space
# Rpm-q Kernel
Kernel-2.6.32-504.el6.x86_64
Kernel-2.6.32-573.12.1.el6.x86_64
Kernel-2.6.32-642.3.1.el6.x86_64
# RPM-E Kernel-2.6.32-573.12.1.el6.x86_64
The previous article aligns the specified fields in the log to display output