Kernel Install/Compile in Redhat, Centos, Fedora
Posted: 2023 May 03, 19:23
Install dependencies
The desired kernel is downloaded, this case kernel-3.5
Extracting kernel from downloaded archive
Configuring the kernel
If you want to configure the kernel version with the configuration of the old kernel, execute the command
Kernel complie
Kernel install
Reboot the machine
After booting, the verification command is executed
Code: Select all
[root @ centos ~]$ yum install gcc ncurses ncurses-devel
[root @ centos ~]$ yum update
Code: Select all
[root @ centos ~]$ cd /tmp
[root @ centos ~]$ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.tar.bz2
Code: Select all
[root @ centos ~]$ tar -jxvf linux-3.5.tar.bz2 -C /usr/src/
[root @ centos ~]$ cd /usr/src/linux-3.5/
Code: Select all
[root @ centos ~]$ make menuconfig
Code: Select all
[root @ centos ~]$ make oldconfig
Code: Select all
[root @ centos ~]$ make
Code: Select all
[root @ centos ~]$ make modules_install install
Code: Select all
[root @ centos ~]$ reboot
Code: Select all
[root @ centos ~]$ uname -r
3.5.0