centos7安装debuginfo

查看内核版本,查找对应的内核rpm文件

[root@node2 ~]# uname -rsp
Linux 3.10.0-1062.4.1.el7.x86_64 x86_64

去debuginfo.centos.org 下载相应的rpm包,本机内核是3.10.0-229.1.2.el7.x86_64 x86_64 下载:

kernel-debuginfo-3.10.0-1062.4.1.el7.x86_64.rpm
kernel-debuginfo-common-x86_64-3.10.0-1062.4.1.el7.x86_64.rpm

安装rpm

wget http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-3.10.0-1062.4.1.el7.x86_64.rpm
wget http://debuginfo.centos.org/7/x86_64/kernel-debuginfo-common-x86_64-3.10.0-1062.4.1.el7.x86_64.rpm
rpm -ivh kernel-debuginfo-3.10.0-229.1.2.el7.x86_64.rpm 
rpm -ivh kernel-debuginfo-common-x86_64-3.10.0-229.1.2.el7.x86_64.rpm 
有的需要配置yum CentOS-Debuginfo.repo ,我这里没有做更改。

使用debuginfo-install安装glibc

[root@localhost ~]# debuginfo-install glibc
如果报错-bash: debuginfo-install: command not found

安装yum-utils

[root@localhost ~]# yum install nss-softokn-debuginfo --nogpgcheck
[root@localhost ~]# yum install yum-utils

安装其他包

debuginfo-install bzip2-libs-1.0.6-12.el7.x86_64 cyrus-sasl-lib-2.1.26-17.el7.x86_64 freetype-2.4.11-10.el7_1.1.x86_64 glibc-2.17-78.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.12.2-14.el7.x86_64 libcom_err-1.42.9-7.el7.x86_64 libcurl-7.29.0-19.el7.x86_64 libidn-1.28-3.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libpng-1.5.13-5.el7.x86_64 libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-8.el7.x86_64 libxml2-2.9.1-5.el7_1.2.x86_64 nspr-4.10.6-3.el7.x86_64 nss-3.16.2.3-5.el7.x86_64 nss-softokn-freebl-3.16.2.3-9.el7.x86_64 nss-util-3.16.2.3-2.el7.x86_64 openldap-2.4.39-6.el7.x86_64 openssl-libs-1.0.1e-42.el7.4.x86_64 pcre-8.32-14.el7.x86_64 xz-libs-5.1.2-9alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64

你可能感兴趣的:(Linux小技巧)