CentOS6 kernel installation source code
1. Install Dependencies
Yum-y install gccyum-y install gcc-c ++ yum install make -- or yum groupinstall "Development Tools" -- or yum install gcc-c ++ kernel-devel -- install ncursesyum install gcc make ncurses-devel perlyum update
2. Download the source code package
cd /tmpwget https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.26.tar.bz2bzip2 -d linux-2.6.32.26.tar.bz2tar -xvf linux-2.6.32.26.tar -C /usr/src/
3. Pre-installation Configuration
Cd/usr/src/linux-2.6.32.26/make menuconfig "This command runs to bring up the" kernel configuration "interface" Press "ESC ", click "YES" to exit ". to customize the kernel, follow the prompts to select" "make oldconfig" "." If you want to customize the kernel, this step is not required. Use the current system kernel configuration file for the kernel source code to be compiled. "will be created under the current directory ". config "file """
4. Compile and install
Make [-jn] "n is a number. For example, make-j4 splits four job tasks for parallel compilation, speed up compilation "without limiting the number of parallel compilation tasks by using make-j, however, the error rate may be higher than ". If no compilation parameter is used, "make modules_install -- install the kernel module make install -- install the kernel reboot
5. Verify and Test
uname -a