centos8更换阿里云yum源和epel源

 

# cat /etc/redhat-release

 

源配置目录

cd /etc/yum.repos.d
vi CentOS-AppStream.repo

baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
vi CentOS-Base.repo

baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
vi CentOS-Extras.repo

baseurl=https://mirrors.aliyun.com/centos/$releasever/extras/$basearch/os/
# dnf -y install epel-release

# dnf clean all

# dnf makecache

# dnf repolist

 

posted @ 2020-11-15 11:50  凡尘夫子  阅读(2302)  评论(0编辑  收藏  举报