Difference: 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 kernelSource code.
If you only want to develop your own modules, you only need to reference the corresponding kernel header file, so only the devel package is available. If you want to modify the existing kernel sourceCodeAnd re-compile, 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.
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.
There are two rpm for the kernel source: kernel and kernel-devel. The kernel RPM contains the source file and header file (like the kernel-source RPM under 2.4 ), the kernel-devel is mainly a header file.