Linux
커널 소스 RPM을 설치했습니다 .
[root@localhost ~]# rpm -ivh kernel-3.10.0-229.el7.src.rpm
warning: kernel-3.10.0-229.el7.src.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Updating / installing...
1:kernel-3.10.0-229.el7 ################################# [100%]
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
warning: user builder does not exist - using root
warning: group builder does not exist - using root
설치 프로세스가 성공한 것 같지만 rpm -ql kernel-3.10.0-229.el7.src
다음 명령을 사용하여 소스 코드가 설치된 위치를 찾을 수 없습니다.
[root@localhost ~]# rpm -ql kernel-3.10.0-229.el7.src
package kernel-3.10.0-229.el7.src is not installed
커널 소스는 어디에 설치되어 있나요 RHEL7
?
업데이트: rpm -qa | grep kernel
명령 출력:
[root@localhost ~]# rpm -qa | grep kernel
kernel-headers-3.10.0-229.el7.x86_64
kernel-devel-3.10.0-229.el7.x86_64
kernel-3.10.0-229.el7.x86_64
kernel-tools-libs-3.10.0-229.el7.x86_64
abrt-addon-kerneloops-2.1.11-19.el7.x86_64
kernel-tools-3.10.0-229.el7.x86_64
답변1
소스 패키지는 rpm 데이터베이스에 추가되지 않으므로 쿼리에 표시되지 않습니다.
가능한 위치는 ~/rpmbuild/{SOURCES,SPECS}입니다. 여기서 SOURCES에는 패키지 소스와 배포 패치가 포함되어 있고 SPECS 하위 디렉터리에는 패키지를 빌드하는 데 사용되는 .spec 파일이 포함되어 있습니다(자세한 내용은 rpmbuild(8) 매뉴얼 페이지 참조).
거기에서 소스를 찾을 수 없으면 -vv 옵션으로 다시 설치하여 위치를 덮어썼는지 확인하세요.
$ 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: ==========
답변2
그것은에 있어야합니다/usr/src/커널.
찾지 못했다면 시도해 볼 수 있습니다.
rpm -qa grep -w 커널 개발
rpm -ql 커널 개발-xxxxx
그러면 커널 rpm에 의해 설치된 파일의 위치가 제공됩니다.
그런데 커널 소스 코드는 kernel-xxxx가 아닌 kernel-devel 패키지를 사용하여 설치해야 합니다.