Created
February 16, 2017 20:23
-
-
Save jarek-przygodzki/7dd636d18c606fdc4c89b6d4f989730d to your computer and use it in GitHub Desktop.
CentOS 7 - How to install kernel-debuginfo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum --enablerepo=base-debuginfo install -y kernel-debuginfo-$(uname -r) |
just use this for the necessary systemtap debuginfo packages:
yum install --enablerepo=base-debuginfo kernel-devel-$(uname -r)
kernel-debuginfo-$(uname -r)
kernel-debuginfo-common-$(uname -m)-$(uname -r)
yum install --enablerepo=base-debuginfo kernel-devel-$(uname -r) kernel-debuginfo-$(uname -r) kernel-debuginfo-common-$(uname -m)-$(uname -r)
How do I get other versions of the DebugInfo RPM package?
yum install --enablerepo=base-debuginfo kernel-devel-$(uname -r) kernel-debuginfo-$(uname -r) kernel-debuginfo-common-$(uname -m)-$(uname -r)
Thanks a lot! This works for me!
yum install --enablerepo=base-debuginfo kernel-devel-$(uname -r) kernel-debuginfo-$(uname -r) kernel-debuginfo-common-$(uname -m)-$(uname -r)
thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The names of the packages have changed as of 29 April 2020. This ran fine on Centos 7 build 2003 kernel 1127
echo "This can't run, it is a bunch of manual instructions
sudo yum install -y systemtap systemtap-devel systemtap-runtime
sudo yum install -y yum-utils
sudo yum install -y wget
uname -r
3.10.0-1127.el7.x86_64
1127 lets you search for the various symbol files
browse http://debuginfo.centos.org/7/x86_64/
In the case of kernel build 1127 there are 7 packages, and debuginfo-common needs to come first
http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-common-x86_64-3.10.0-1127.el7.x86_64.rpm
http://debuginfo.centos.org/7/x86_64/kernel-debug-debuginfo-3.10.0-1127.el7.x86_64.rpm
http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-3.10.0-1127.el7.x86_64.rpm
http://debuginfo.centos.org/7/x86_64/kernel-plus-debuginfo-3.10.0-1127.el7.centos.plus.x86_64.rpm
http://debuginfo.centos.org/7/x86_64/kernel-plus-debuginfo-common-x86_64-3.10.0-1127.el7.centos.plus.x86_64.rpm
http://debuginfo.centos.org/7/x86_64/kernel-plus-tools-debuginfo-3.10.0-1127.el7.centos.plus.x86_64.rpm
this one conflicts with the previous one, don't know if that is good, bad, or ...
http://debuginfo.centos.org/7/x86_64/kernel-tools-debuginfo-3.10.0-1127.el7.x86_64.rpm
2 ways to get and install the files
(a)
wget http://debuginfo.centos.org/7/x86_64/kernel-plus-debuginfo-common-x86_64-3.10.0-1127.el7.centos.plus.x86_64.rpm
sudo yum --enablerepo=base-debuginfo localinstall -y kernel-plus-debuginfo-common-x86_64-3.10.0-1127.el7.centos.plus.x86_64.rpm
(b)
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-plus-debuginfo-common-x86_64-3.10.0-1127.el7.centos.plus.x86_64.rpm
This is the runnable list for kernel 3.10.0-1127
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-common-x86_64-3.10.0-1127.el7.x86_64.rpm
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-debug-debuginfo-3.10.0-1127.el7.x86_64.rpm
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-3.10.0-1127.el7.x86_64.rpm
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-plus-debuginfo-3.10.0-1127.el7.centos.plus.x86_64.rpm
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-plus-debuginfo-common-x86_64-3.10.0-1127.el7.centos.plus.x86_64.rpm
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-plus-tools-debuginfo-3.10.0-1127.el7.centos.plus.x86_64.rpm
this conflicts with the last one, dunno
sudo yum --enablerepo=base-debuginfo localinstall -y http://debuginfo.centos.org/7/x86_64/kernel-tools-debuginfo-3.10.0-1127.el7.x86_64.rpm