0
点赞
收藏
分享

微信扫一扫

RHEL9 epel配置

萍儿的小确幸 2023-04-02 阅读 68

清华源

yum install -y https://mirrors.cloud.tencent.com/epel/epel-release-latest-9.noarch.rpm

sed -e 's!^metalink=!#metalink=!g' \
    -e 's!^#baseurl=!baseurl=!g' \
    -e 's!http://download\.fedoraproject\.org/pub/epel!https://mirrors.tuna.tsinghua.edu.cn/epel!g' \
    -e 's!http://download\.example/pub/epel!https://mirrors.tuna.tsinghua.edu.cn/epel!g' \
    -e 's!https://download\.example/pub/epel!https://mirrors.tuna.tsinghua.edu.cn/epel!g' \
    -i /etc/yum.repos.d/epel*.repo

直接写入 repo 文件

cat > /etc/yum.repos.d/epel.repo <<'eof'
[epel]
name=epel
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch/
enabled=1
gpgcheck=0
eof

yum clean all
yum makecache

举报

相关推荐

0 条评论