Linux
如何獲取“RHEL 7.0 vmlinux”文件?
我想
crash
在RHEL 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 ......
我已經從
RHEL 7.0 ISO
文件中安裝了所有 kernel*.pkg:[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
文件呢?
您需要為 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
有關如何啟用此 repo 的資訊可以在 https://access.redhat.com/solutions/9907找到