Posts

Showing posts with the label Kernel Compilation

Compiling and installing latest kernel from source on RHEL or CentOS 7

Image
Compile and install latest kernel from source on RHEL or CentOS 7 OS ... In this blog i will show you, how you can compile and install latest kernel from source on RHEL 7 Or CentOS 7 Operating system. Check currently installed kernel version : # uname -r 3.10.0-957.el7.x86_64 As you can see current kernel version is 3.10, but i want to upgrade it to the latest stable available version, which you can find on  https://www.kernel.org/  official website. As of today current stable available version is "5.0.5" To download this "5.0.5" kernel source, you can click either the big Yellow download button or you can click on the "tarball" link as shown in above screenshot. You can also download this version from below link: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.0.5.tar.xz Step 1 : Install build tools and other mandatory dependencies which are needed to compile and install new kernel from source. Before you ins...

How to compile kernel in RHEL and CentOS 5?

Image
Here i am compiling Kernel "linux-2.6.36.2" on CentOS 5.3 To create new custom kernel we will follow below steps; 1. Check for essential packages. 2. Find the kernelsource code. 3. Configure the new kernel. 4. Customize the kernel. 5. Build the kernel. 6. Edit entry in "/boot/grub/grub.conf" file. Steps : 1. Before you start compiling a kernel ckeck following packages are installed or not, gcc & make #rpm -qa make gcc 2. You can download latest stable kernel from " Kernel.org ", then download and untar "linux-2.6.36.2.tar.bz2" package, #bunzip2 linux-2.6.36.2.tar.bz2 #tar xvf linux-2.6.36.2.tar 3. Now got to extracted directory of latest kernel #cd linux-2.6.36.2 4. Copy Kernel source code directory "linux-2.6.36.2"in "/usr/src" directory, #cp -r linux-2.6.36.2 /usr/src/ 5. Go to "/usr/src/linux-2.6.36.2/" and run, #make menuconfig         Note : Don...