Upgrading the kernel in CentOS 7 is remarkably straightforward.
1. Initiate the kernel upgrade by logging in via SSH -
Type: yum update -y
Press Enter
The inclusion of -y will automatically confirm all queries (if no updates are available, this will also be indicated, in which case the reboot below is unnecessary).
You should see something similar to this:
Transaction in Progress
Installation : kernel-2.6.32-504.23.4.el6.x86_64 1/2
Clearing : kernel-2.6.32-431.29.2.el6.x86_64 2/2
Validation : kernel-2.6.32-504.23.4.el6.x86_64 1/2
Validation : kernel-2.6.32-431.29.2.el6.x86_64 2/2
Removed:
kernel.x86_64 0:2.6.32-431.29.2.el6
Installed:
kernel.x86_64 0:2.6.32-504.23.4.el6
Finished!
root@ls1 [/]#
2. Restart your server
Type: reboot
Press Enter