Page 1 of 1

Kernel Install/Compile in Redhat, Centos, Fedora

Posted: 2023 May 03, 19:23
by Mihai
Install dependencies

Code: Select all

[root @ centos ~]$ yum install gcc ncurses ncurses-devel
[root @ centos ~]$ yum update
The desired kernel is downloaded, this case kernel-3.5

Code: Select all

[root @ centos ~]$ cd /tmp
[root @ centos ~]$ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.tar.bz2
Extracting kernel from downloaded archive

Code: Select all

[root @ centos ~]$ tar -jxvf linux-3.5.tar.bz2 -C /usr/src/
[root @ centos ~]$ cd /usr/src/linux-3.5/
Configuring the kernel

Code: Select all

[root @ centos ~]$ make menuconfig
If you want to configure the kernel version with the configuration of the old kernel, execute the command

Code: Select all

[root @ centos ~]$ make oldconfig
Kernel complie

Code: Select all

[root @ centos ~]$ make
Kernel install

Code: Select all

[root @ centos ~]$ make modules_install install
Reboot the machine

Code: Select all

[root @ centos ~]$ reboot
After booting, the verification command is executed

Code: Select all

[root @ centos ~]$ uname -r
3.5.0