How to install kernel-2.6.***src.rpm?

Step 1: download kernel-2.6.26.6-49.fc8.src.rpm from  

         http://kojipkgs.fedoraproject.org/packages/kernel/2.6.26.6/49.fc8/src/kernel-2.6.26.6-49.fc8.src.rpm.

Step 2: 

         $ groupadd mockbuild

         $ useradd mockbuild -g mockbuild 

         $ rpm -ivh kernel-2.6.26.6-49.fc8.src.rpm

Step 3:

         $ cd /usr/src/redthat/SPEC

         $ rpmbuild -bp kernel.spec

         $ cd /usr/src/redhat/BUILD

         $ cd kernel-2.6.26/linux-2.6.26.i386

         $ make menuconfig

         $ make

         $ make modules_install

         $ mkinitrd /boot/initrd-2.6.26.6 2.6.26.6

         $ cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.26

         $ cp System.map System.map-2.6.26.6       

Step 4: Modify the menu.lst and add an entry for new kernel.

Step 5: Reboot

你可能感兴趣的:(download)