Kernel Install/Compile in Redhat, Centos, Fedora

Locked
User avatar
Mihai Romania
Posts: 60
Joined: 2023 May 03, 14:12
Location: ROMANIA
Contact:

Kernel Install/Compile in Redhat, Centos, Fedora

Post 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
I'm on LinkedIn
Locked