How to download and install debuginfo packages for CentOS?

In generally, we’d install packages by the command of “yum install <package-name>”; but I get the same error message no matter what tricks I tried.

# yum install debuginfo
Loaded plugins: fastestmirror
base                                                                                                                                                 | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                                                                 | 8.6 kB  00:00:00     
epel                                                                                                                                                 | 3.2 kB  00:00:00     
extras                                                                                                                                               | 3.4 kB  00:00:00     
updates                                                                                                                                              | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
No package debuginfo available.
Error: Nothing to do

Finally, I figure out a helpful way.

Firstly, get the target packages from through wget/curl.

# uname -a
Linux node2 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 
# wget
# wget

Lastly, yum install them.

# yum install kernel-debuginfo-common-x86_64-3.10.0-693.el7.x86_64.rpm
# yum install kernel-debuginfo-3.10.0-693.el7.x86_64.rpm




Fill in your details below or click an icon to log in: 徽标

You are commenting using your account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理