项目场景:
openEuler安装epel源
问题描述
yum -y install epel-release
No match for argument: epel-release
Error: Unable to find a match: epel-release
rpm -ivh epel-release-9-5.el9.noarch.rpm
error: Failed dependencies:
redhat-release >= 9 is needed by epel-release-9-5.el9.noarch
解决方案:
vi /etc/yum.repos.d/epel.repo
[epel]
name=epel
baseurl=https://repo.huaweicloud.com/epel/7/x86_64/
enabled=1
gpgcheck=0
priority=1
yum clean all
yum makecache
yum repolist enabled