1. 程式人生 > >CentOS 安裝 linux kernel 原始碼

CentOS 安裝 linux kernel 原始碼

原文連結:https://blog.csdn.net/qaz1qaz1qaz2/article/details/52825389

1.下載系統包
yum install rpm-build
yum install redhat-rpm-config

2.下載並安裝kernel包
lynx http://vault.centos.org/6.0/os/SRPMS/Packages/kernel-2.6.32-71.el6.src.rpm

rpm -ivh kernel-2.6.32-71.el6.src.rpm

3.執行rpmbuild命令
cd /root/rpmbuild/SPECS
rpmbuild -bp --target=`uname -m` kernel.spec

4.原始碼的位置
cd /root/rpmbuild/BUILD/kernel-2.6.32-71.el6/linux-2.6.32-71.el6.x86_64