如何获取“RHEL 7.0 vmlinux”文件?

如何获取“RHEL 7.0 vmlinux”文件?

我想用crashRHEL 7.0.由于crash需要vmlinux文件,但我在文件夹中找不到它/boot,只能vmlinuxz

......
vmlinuz-0-rescue-7c50639231494746b5dffc0a1ff84727
vmlinuz-3.10.0-123.el7.x86_64
vmlinuz-3.10.0-123.el7.x86_64.debug
......

我已经从文件安装了所有 kernel*.pkg RHEL 7.0 ISO

[root@localhost boot]# yum install kernel*
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
RHEL                                                                                        | 4.1 kB  00:00:00
Package kernel-headers-3.10.0-123.el7.x86_64 already installed and latest version
Package kernel-3.10.0-123.el7.x86_64 already installed and latest version
Package kernel-abi-whitelists-3.10.0-123.el7.noarch already installed and latest version
Package kernel-debug-3.10.0-123.el7.x86_64 already installed and latest version
Package kernel-tools-libs-3.10.0-123.el7.x86_64 already installed and latest version
Package kernel-devel-3.10.0-123.el7.x86_64 already installed and latest version
Package kernel-debug-devel-3.10.0-123.el7.x86_64 already installed and latest version
Package kernel-tools-3.10.0-123.el7.x86_64 already installed and latest version
Nothing to do

那么如何获取RHEL 7.0 vmlinux文件呢?

答案1

您需要为 RHEL 启用“debuginfo”存储库并安装 kernel-debuginfo rpm 以获得所需的 vmlinux

# rpm -qf /usr/lib/debug/lib/modules/3.10.0-229.14.1.el7.x86_64/vmlinux 
kernel-debuginfo-3.10.0-229.14.1.el7.x86_64

有关如何启用此存储库的信息可以在以下位置找到: https://access.redhat.com/solutions/9907

相关内容