1 删除库配置文件
以root权限执行以下的命令:
# cd /etc/yum.repos.d/
列出全部库(repo)
#ls
CentOS-Base.repo epel.repo mirrors-rpmforge-testing
CentOS-Debuginfo.repo epel-testing.repo rpmforge.repo
删除目标库,指定详细的名称。
#rm epel.repo epel-testing.repo
### ***************************** ###
### make sure you delete GPG keys also ###
### ***************************** ###
# rm /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
# yum clean all
2 删除库的.rpm包
#rpm -qa | grep epel
输出:
epel-release-6-8.noarch
删除就可以
#yum remove epel-release-6-8.noarch
清理配置
yum clean all