I install the Linux kernel source code RPM:  [root@localhost ~]# rpm -ivh kernel-3.10.0-229.el7.src.rpmwarning: kernel-3.10.0-229.el7.src.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEYUpdating / installing...   1:kernel-3.10.0-229.el7            ################################# [100%]warning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootwarning: user builder does not exist - using rootwarning: group builder does not exist - using rootThe installation process seems success, but using rpm -ql kernel-3.10.0-229.el7.src command can't find where the source code is installed:  [root@localhost ~]# rpm -ql kernel-3.10.0-229.el7.srcpackage kernel-3.10.0-229.el7.src is not installedWhere is the RHEL7 kernel source code installed?Update: rpm -qa | grep kernel command ouput:[root@localhost ~]# rpm -qa | grep kernelkernel-headers-3.10.0-229.el7.x86_64kernel-devel-3.10.0-229.el7.x86_64kernel-3.10.0-229.el7.x86_64kernel-tools-libs-3.10.0-229.el7.x86_64abrt-addon-kerneloops-2.1.11-19.el7.x86_64kernel-tools-3.10.0-229.el7.x86_64
Where is the RHEL7 kernel source code installed?
linux;rhel;kernel;linux kernel;rpm
Source packages are not added to the rpm database, so they will not show on query.Probable location is ~/rpmbuild/{SOURCES,SPECS} with SOURCES containing the package sources and distribution patches while the SPECS subdirectory containing the .spec file being used to build the package (see rpmbuild (8) man page for details).If you can't find the sources there, than reinstall with the -vv option to check the location if it's overwritten: $ rpm -ivvh kernel-3.10.0-229.7.2.el7.src.rpm --- snip ---Updating / installing...   1:kernel-3.10.0-229.7.2.el7        ################################# [100%]D: ========== Directories not explicitly included in package:D:          0 /home/user/rpmbuild/SOURCES/D:          1 /home/user/rpmbuild/SPECS/D: ==========