Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Created February 16, 2017 20:23
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save jarek-przygodzki/7dd636d18c606fdc4c89b6d4f989730d to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/7dd636d18c606fdc4c89b6d4f989730d to your computer and use it in GitHub Desktop.
CentOS 7 - How to install kernel-debuginfo
yum --enablerepo=base-debuginfo install -y kernel-debuginfo-$(uname -r)
@VladExDiego
Copy link

VladExDiego commented May 4, 2020

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

@mihalycsaba
Copy link

mihalycsaba commented Jul 13, 2020

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)

@imweijh
Copy link

imweijh commented Sep 30, 2020

yum install --enablerepo=base-debuginfo kernel-devel-$(uname -r) kernel-debuginfo-$(uname -r) kernel-debuginfo-common-$(uname -m)-$(uname -r)

@JokerDevops
Copy link

How do I get other versions of the DebugInfo RPM package?

@dcui
Copy link

dcui commented Jan 23, 2021

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!

@jbovet
Copy link

jbovet commented Aug 11, 2021

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