Centos

如何從 CentOS 6.5 安裝中刪除 EPEL 7.0 repo?

  • October 6, 2020

在嘗試將 PHP 5.4 更新到 7.2 時,安裝了顯示 epel 7 的 libcurl 包更新。如何從 centos 6 中刪除它並安裝 epel 6.8?

  1. 要刪除目前epel-release使用:
yum remove epel-release
yum update

或者

rm /etc/yum.repos.d/epel.repo
yum update
  1. 要安裝epel-release 6.8使用:
yum install https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update

或者

yum install https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum update

引用自:https://serverfault.com/questions/939944