United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
To download the desired kernel source package. Go to rhn.redhat.com --> search for kernel package with search tool --> click on the kernel version --> and select the appropriate kernel-xxxx-src.rpm, and click on 'Download Source Package'.
$ rpm -ivh kernel-2.6.18-8.1.8.el5.src.rpm
$ yum install unifdef $ yum install redhat-rpm-config
$ cd /usr/src/redhat/SPECS
$ rpmbuild -bp --target=x86_64 kernel-2.6.spec
Note:- If dependency errors appear, then install those
dependencies with yum ($ yum install
$ cp -a /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/ /usr/src/ $ ln -s /usr/src/linux-2.6.18.x86_64/ /usr/src/linux
Once completed, a symlinked directory pointing to the latest Linux 2.6 kernel source should be available:
# ls -lt /usr/src/ lrwxrwxrwx 1 root root 29 Oct 5 19:27 linux -> /usr/src/linux-2.6.18.x86_64/ drwxr-xr-x 20 root root 4096 Oct 5 19:25 linux-2.6.18.x86_64