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 updateCode: Select all
[root @ centos ~]$ cd /tmp
[root @ centos ~]$ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.tar.bz2Code: 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 menuconfigCode: Select all
[root @ centos ~]$ make oldconfigCode: Select all
[root @ centos ~]$ makeCode: Select all
[root @ centos ~]$ make modules_install installCode: Select all
[root @ centos ~]$ rebootCode: Select all
[root @ centos ~]$ uname -r
3.5.0