Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 559 Bytes

EPEL.md

File metadata and controls

23 lines (18 loc) · 559 Bytes

EPEL安装

sudo yum install epel-release

EPEL镜像配置

EPEL镜像配置文件位于/etc/yum.repos.d/epel.repo

修改命令:

sudo sed -e 's|^metalink=|#metalink=|g' \
         -e 's|^#baseurl=https\?://download.fedoraproject.org/pub/epel/|baseurl=https://mirrors.pku.edu.cn/epel/|g' \
         -i.bak \
         /etc/yum.repos.d/epel.repo

即将该文件中baseurl=行取消注释并改为北大源地址http://mirrors.pku.edu.cn/epel/开头。

修改文件后需要更新缓存:

sudo yum makecache