Monday, August 9, 2010

Fedora: Update/Rebuild Linux Kernel

FC14
[ ]# yum install kernel-devel-2.6.35.6-45.fc14.i686

FC12
[ ]# yum install yum-utils
[ ]# yumdownloader --source kernel
[ ]# yum install kernel-headers
[ ]# rpm -ivh kernel-2.6.32.16-150.fc12.src.rpm
[ ]# yum install asciidoc
[ ]# cd /root/rpmbuild/SPECS
[ ]# rpmbuild -bp --target=$(uname -m) kernel.spec
[ ]# cd /root/rpmbuild/BUILD/kernel-2.6.32/linux-2.6.32.i686
[ ]# cp configs/kernel-2.6.32.16-i686.config .config

[ ]# make
[ ]# make modules_install
[ ]# make install

FC9
[ ]# yum install yum-utils
[ ]# yumdownloader --source kernel
[ ]# yum install kernel-headers
[ ]# rpm -ivh kernel-2.6.25.3-18.fc9.src.rpm
[ ]# cd /usr/src/redhat/SPECS
[ ]# rpmbuild -bp --target=i686 kernel.spec
[ ]# cd ../BUILD/kernel-2.6.25/linux-2.6.25.i686/
[ ]# cp configs/kernel-2.6.25.3-i686.config .config

[ ]# make
[ ]# make modules_install
[ ]# make install

No comments: