Install Linux kernel source code in CentOS 6
Install Linux kernel source code in CentOS 6
1. Install Dependencies
Yum-y install gcc
Yum-y install gcc-c ++
Yum install make
-- Or
Yum groupinstall "Development Tools"
-- Or
Yum install gcc-c ++ kernel-devel
-- Install ncurses
Yum install gcc make ncurses-devel perl
Yum update
2. Download the source code package
Cd/tmp
Wget https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.26.tar.bz2
Bzip2-d linux-2.6.32.26.tar.bz2
Tar-xvf linux-2.6.32.26.tar-C/usr/src/
3. Pre-installation Configuration
Cd/usr/src/linux-3.9/
Make menuconfig
"This command will pop up" kernel configuration "interface """
"Press" ESC ", click" YES "to exit """
"To customize the kernel, please select as prompted """
Make oldconfig
"This step is not required if the kernel is customized """
"Use the current system kernel configuration file for the kernel source code to be compiled """
"The current directory will create". config "file """
4. Compile and install
Make [-jn]
"N is a number, for example, make-j4 splits four job tasks for parallel compilation to speed up compilation """
"Using make-j does not limit the number of parallel compilation tasks, but the error rate may be higher """
"If you do not use any compilation parameters, it is also common to use one or two hours """
Make modules_install -- install the kernel module
Make install -- install the kernel
Reboot
5. Verify and Test
Uname-
CentOS 6.2 kernel installation source code
The Ubuntu 13.10 (Saucy Salamander) Kernel has been upgraded to Linux Kernel 3.10 RC5
Linux Kernel 3.4.62 LTS is now available for download
How to install Linux kernel 13.10 On Ubuntu 3.12
Linux Kernel: click here
Linux Kernel: click here