Updating kernel from source
For checking the kernel version, you can use the uname command.uname -msr The output will show your machine's Linux kernel version as well system architecture.You can check all of the available repositories on the system (enabled as well as disabled) with the following command.yum repolist all At step 4, we've already installed a new kernel 4.11.2 to the system.Check your Cent OS version with the following commands.cat /etc/redhat-releasecat /etc/os-release You will get the system info as shown below.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'.
This works both for stable releases such as Net BSD 5.0 and for Net BSD-current.Among other things, these specify the CVS repository to use, what architecture to build for, where to place the build files and what steps to perform during an upgrade. The default configuration of both tools should let you get started with minimal effort.In their simplest form, you can do a full Net BSD build and upgrade your system to it by running these commands: package can be used to configure and maintain an unprivileged system user to perform periodic (e.g. This can come in very handy to closely track Net BSD-current.Cent OS 7 is using 3.10 as the default kernel version.And in this guide, we will install the latest stable version 4.11.2. ELRepo is a community-based repository for Enterprise Linux and offers support for Red Hat Enterprise (RHEL) and other distribution based on it (Cent OS, Scientific, Fedora etc).