Skip to content

Instantly share code, notes, and snippets.

@mallipeddi
Created July 21, 2012 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallipeddi/3154145 to your computer and use it in GitHub Desktop.
Save mallipeddi/3154145 to your computer and use it in GitHub Desktop.
RHEL5 - Adding debuginfo yum repo & installing debug kernel image
#
# Follow instructions from the website below and add rhel5-debuginfo.repo to yum repos list (if not exists)
# http://le-huy.blogspot.com/2011/01/using-debuginfo-packages-in-redhat.html
#
[root@localhost ~]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
#
# debuginfo repo is disabled by default; so dynamically enable it when running any yum commands
# Install the corresponding version of debug-info package as the one you've installed.
#
# Entire list of packages:
# ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/x86_64/Debuginfo/
#
[root@localhost ~]# yum install --enablerepo rhel-debuginfo kernel-debuginfo-2.6.18-164.el5 kernel-debuginfo-common-2.6.18-164.el5 kernel-debug-debuginfo-2.6.18-164.el5
#
# Kernel image with debuginfo will be installed in:
# /usr/lib/debug/lib/modules/2.6.18-164.el5debug/vmlinux
#
# Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment