next up previous
Next: Recompiling the alsa sound Up: Appendixes that should not Previous: Planetology


Recompiling the kernel rpms

If for some reason you want to recompile the kernel rpms from scratch, first download the source rpm from the repository.

You can also add the following line to your /etc/apt/sources.list:

rpm-src http://ccrma.stanford.edu/planetccrma/apt/ redhat/7.x/en/i386 planetccrma

After that do an apt-get update and then download the source rpm for the kernel:

apt-get update ; apt-get source kernel-KERNEL_VERSION

  1. install the source rpm.
    rpm -Uvh kernel-KERNEL_VERSION.src.rpm

  2. build the i386 rpms.
    cd /usr/src/redhat/SPECS
    rpmbuild -ba kernel-KERNEL_VERSION.spec
    After the build process is finished you will find the i386 rpms in /usr/src/redhat/RPMS/i386/ and a freshly built source rpm in /usr/src/redhat/SRPMS/

  3. build for other targets.
    cd /usr/src/redhat/SPECS
    rpmbuild -ba --target i686 kernel-KERNEL_VERSION.spec


next up previous
Next: Recompiling the alsa sound Up: Appendixes that should not Previous: Planetology

© Copyright 2001...2011 Fernando Lopez-Lezcano, CCRMA, Stanford University.
All rights reserved.