cd /etc/yum.repos.d/
ls
cp CentOS-Debuginfo.repo.bk CentOS-Debuginfo.repo
vim CentOS-Debuginfo.repo
# CentOS-Debug.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # All debug packages from all the various CentOS-5 releases # are merged into a single repo, split by BaseArch # # Note: packages in the debuginfo repo are currently not signed # [debug] name=CentOS-6 - Debuginfo baseurl=http://debuginfo.centos.org/6/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6 enabled=0
把 enabled=0 修改為 enabled=1yum install nss-softokn-debuginfo
debuginfo-install glibc-2.12-1.166.el6_7.3.x86_64