CentOS6 kernel installation source code

Source: Internet
Author: User

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

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.