How to install kernel-debuginfo using subscription manager
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
Issue
- Unable to install kernel-debuginfo
Resolution
- Verify the
debuginfo
repository that is needed to be assigned to the system:
# subscription-manager repos --list
+----------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID: rhel-7-public-beta-debug-rpms
Repo Name: Red Hat Enterprise Linux 7 Public Beta (Debug RPMs)
Repo URL: https://cdn.redhat.com/content/beta/rhel/everything/7/x86_64/debug
Enabled: 1
Repo ID: rhel-7-public-beta-rpms
Repo Name: Red Hat Enterprise Linux 7 Public Beta (RPMs)
Repo URL: https://cdn.redhat.com/content/beta/rhel/everything/7/x86_64/os
Enabled: 1
Repo ID: rhel-7-public-beta-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Public Beta (Source RPMs)
Repo URL: https://cdn.redhat.com/content/beta/rhel/everything/7/x86_64/source/SRPMS
Enabled: 0
- Enable the repository using subscription-manager. In the list above, the
rhel-7-public-beta-debug-rpms
repository is the needed revision.
# subscription-manager repos --enable=rhel-7-public-beta-debug-rpms
- Install the package via yum
# yum install kernel-debuginfo-`uname -r`
- Note: In order to enable this repository there must be a valid subscription attached to the account.
Root Cause
- The debuginfo repositories are not enabled by default.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
1 Comments
Problem with repo existence and with debuginfo package availability. Solved
found 114 entries, but no repo named rhel-7-public-beta-debug-rpms.
I picked rhel-7-server-beta-debug-rpms and successfully enabled it using subscription-manager. However, after that,
failed with:
To address the problem of no kernel debug info available, I enabled all the other repos in the list. Still yum install hit the timeout.
After 30 minutes I retried the same yum install command. Fortune smiled, and yum found package kernel-debuginfo.x86_64 in the rhel-7-server-eus-debug-rpms repo and installed it successfully in under 5 minutes. Problem solved.