Install Linux kernel source code in CentOS 6

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.