CentOS 8.0配置阿里云yum源和epel源

# cat /etc/redhat-release

image.png

# cd /etc/yum.repos.d

# vim CentOS-AppStream.repo

baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/

image.png

# vim CentOS-Base.repo

baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/

image.png

# vim CentOS-Extras.repo

baseurl=https://mirrors.aliyun.com/centos/$releasever/extras/$basearch/os/

image.png

# dnf -y install epel-release

# dnf clean all

# dnf makecache

# dnf repolist

image.png


猜你喜欢

转载自blog.51cto.com/qiuyue/2446123