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: mirrors.huaweicloud.com * epel: mirrors.huaweicloud.com * extras: mirrors.huaweicloud.com * updates: mirrors.tuna.tsinghua.edu.cn No package debuginfo available. Error: Nothing to do
Finally, I figure out a helpful way.
Firstly, get the target packages from http://debuginfo.centos.org 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 http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-common-x86_64-3.10.0-693.el7.x86_64.rpm # wget http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-3.10.0-693.el7.x86_64.rpm
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
分类:Development