1 删除库配置文件
以root权限执行以下的命令:
# cd /etc/yum.repos.d/列出全部库(repo)
#lsCentOS-Base.repo epel.repo mirrors-rpmforge-testingCentOS-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