配置CentOS8 yum源

一:来到 cd /etc/yum.repos.d/目录

二:下载yum源

wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

下载完成后会有下列两个目录:

[root@rhcse yum.repos.d]# ls
CentOS-Base.repo  redhat.repo

在CentOS-Base.repo目录下有如下内容: 

 清理yum缓存,重新生成新的yum源

dnf clean all
dnf makecache

测试用yum下载httpd:

 

Guess you like

Origin blog.csdn.net/weixin_59280309/article/details/121874793