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

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

wKioL1iyVdLihYKgAAAu-b8RGFM152_middle.jpg

Marion0728已关注0人评论208人阅读2019-10-29 00:48:23

# 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/

CentOS 8.0配置阿里云yum源和epel源_第1张图片

# vim CentOS-Extras.repo

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

CentOS 8.0配置阿里云yum源和epel源_第2张图片

# dnf -y install epel-release

# dnf clean all

# dnf makecache

# dnf repolist

image.png


©著作权归作者所有:来自51CTO博客作者Marion0728的原创作品,如需转载,请注明出处,否则将追究法律责任