EPEL (Extra Packages for Enterprise Linux) 是由 Fedora Special Interest Group 为企业 Linux 创建、维护和管理的一个高质量附加包集合,适用于但不仅限于 Red Hat Enterprise Linux (RHEL), CentOS, Scientific Linux (SL), Oracle Linux (OL)等。
添加repo源文件至 /etc/yum.repos.d/
下(使用root用户)
#EPEL7 curl -A "DevProcess" -o /etc/yum.repos.d/epel.repo https://mirrors.eruit.cn/repo/epel7.repo #EPEL8 curl -A "DevProcess" -o /etc/yum.repos.d/epel.repo https://mirrors.eruit.cn/repo/epel8.repo #EPEL9 curl -A "DevProcess" -o /etc/yum.repos.d/epel.repo https://mirrors.eruit.cn/repo/epel9.repo
运行以下命令更新软件包缓存
dnf makecache