Obtaining the Kernel Sources

Every Linux distribution contains kernel sources. Red Hat offers install options to include the kernel headers, and a separate RPM to include the kernel sources. You must install the kernel headers if you plan to compile any software; to build the kernel, you must also install the kernel-sources RPM, or obtain kernel sources from some other source.

When fetching kernel sources, it is good netiquette to seek a mirror site as close to you as possible. Although famous sites such as Red Hat (ftp://ftp.redhat.com) and kernel.org (ftp://ftp.kernel.org/pub/linux) will have the files you need, you should check http://www.kernel.org for an appropriate mirror site.

Distribution Kernels

Before you replace your kernel sources, ...

Get Red Hat® Linux® 7 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.