Content:
Kernel-devel: Provides the C header file, which also contains the Kernel configuration file and other development materials.
Kernek-Source: Contains source code and header files
Cover:
Kernel-devel is generally used for kernel development. For example, to compile a kernel module, in principle, you do not need the original kernel code.
Kernel refers to the development of the kernel itself, so the original code of the kernel is required.
Differences:
The kernel-devel package only contains the kernel header file and makefile required for the kernel development environment, while the kernel-Souce contains all the kernel source code.
If it is only used for the development of your own modules, you only need to reference the corresponding kernel header file, so only the devel package can be used,
If you want to modify the existing kernel source code and re-compile it, it must be kernel-Souce.
Kernel-Souce is no longer included in the release after some RH versions and must be made by yourself through the kernel-XXX.src.rpm.
Purpose:
If a program requires some functions provided by the kernel, it requires the C header of the kernel to compile the program. At this time, the content in Linux-devel will be used.
For example, nvidia and ATI official graphics card drivers, RealTek Nic drivers, and ALSA-driver Audio Card Drivers all need to compile a module that runs in the kernel,
Compiling this module requires the kernel header file to be compiled smoothly.
A prelude to driver module Compilation: Kernel-devel