我尝试在我的 CentOS 系统中启用我的 EPEL 存储库,因为一些软件包在官方 CentOS 7 存储库中不可用。
我遵循了本教程:
http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
并遵循 RHEL/CentOS 7 64 位
部分。
我试过了
RHEL/CentOS 7 64-Bit
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm
但是我得到这个错误:
resolving dl.fedoraproject.org (dl.fedoraproject.org)... failed: Name or service not known.
wget: unable to resolve host address dl.fedoraproject.org
你们中有人知道如何解决这个问题吗?
我尝试用谷歌搜索,但没有指出正确答案。
最佳答案
如“Is there any reason for a successful yum update to cause a subsequent wget to fail?”中所述,您可能想尝试:
sudo yum update
sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
关于linux - 在 CentOS 7 中启用 EPEL 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34757743/