Hledáte v distribuci RedHat Ent. Linux 4 package kernel-source? Již ji nenaleznete, ale zde je popis, jak se bez ní obejít.
In order to eliminate the redundancy inherent in providing a separate package for the kernel source code when that source code already exists in the kernel“s .src.rpm file, Red Hat Enterprise Linux 4 no longer includes the kernel-source package. Users that require access to the kernel sources can find them in the kernel .src.rpm file. To create an exploded source tree from this file, perform the following steps (note that refers to the version specification for your currently-running kernel):
- Obtain the kernel-.src.rpm file from one of the following sources:
- The SRPMS directory on the appropriate „SRPMS“ CD iso image
- The FTP site where you got the kernel package
- By running the following command:
up2date --get-source kernel
- Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)
- Change directory to /usr/src/redhat/SPECS/, and issue the following command:
rpmbuild -bp --target=<arch> kernel.spec(Where is the desired target architecture.)
On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
- In resulting tree, the configurations for the specific kernels shipped in Red Hat Enterprise Linux 4 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel–i686-smp.config.
Issue the following command to place the desired configuration file in the proper place for building:
cp <desired-file> ./.config
- Issue the following command:
Oficální odkaz naleznete zde.