Updating kernel from source
In this step, we will install latest kernel version (4.11.2 - the Latest stable version on kernel.org) from the ELRepo repository. yum --enablerepo=elrepo-kernel install kernel-ml --enablerepo is an option to enable specific repository on Cent OS system.By default, 'elrepo' repository is enabled, but for our case, we needed 'elrepo-kernel'.Now we will show you how to make it the default kernel version that will load when the system is starting.Check all available kernel versions with the awk command below.A common mechanism for upgrading a Net BSD system to a newer version is by rebuilding the system from sources and installing the results.This works both for stable releases such as Net BSD 5.0 and for Net BSD-current.Check your Cent OS version with the following commands.
The first thing we must do before upgrading the kernel is to upgrade all packages to the latest version.
Update the repository and all packages to latest versions with the yum command below.
yum -y update Now install the following package to make installation and updating process fast.
The upgrade of the operating system could have been performed either by compiling sources or by extracting the distribution binaries.
Sometimes it's not convenient to have the sources around but you still want to update the configuration and startup files.
The solution is to feed (or xetc.tgz) to etcupdate via the -s tgzfile switch.