进入
cd /etc/yum.repos.d/
执行
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
ls 查看多了一个

清除缓存
yum clean all
本文介绍如何通过命令行操作配置EPEL仓库。具体步骤包括进入指定目录、下载EPEL仓库配置文件并重命名、检查文件是否成功下载、以及清理yum缓存等关键操作。
进入
cd /etc/yum.repos.d/
执行
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
ls 查看多了一个

清除缓存
yum clean all
2950
3362
1675
2495
1万+

被折叠的 条评论
为什么被折叠?