本文主要是介绍No package *** available. Error: Nothing to do,安装 EPEL 解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
EPEL:企业版 Linux 附加软件包,即 Extra Packages for Enterprise Linux
一、官方安装教程
RHEL/CentOS 6:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RHEL/CentOS 7:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
二、配置 EPEL 阿里源
1、备份(如有配置其他epel源)
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
2、下载新repo 到/etc/yum.repos.d/
epel(RHEL 7)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
epel(RHEL 6)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
epel(RHEL 5)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
参考链接:
EPEL 官方地址:http://fedoraproject.org/wiki/EPEL
阿里巴巴开源镜像站:https://opsx.alibaba.com/mirror
这篇关于No package *** available. Error: Nothing to do,安装 EPEL 解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!