编辑
CentOS-AppStream.repo配置文件,注释原有url,加入以下url
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
编辑CentOS-Base.repo配置文件,注释原有url,加入以下url
baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
编辑CentOS-Extras.repo配置文件,注释原有url,加入以下url
baseurl=https://mirrors.aliyun.com/centos/$releasever/extras/$basearch/os/
安装扩展,清理缓存,生成缓存,查看可用源
dnf -y install epel-release
dnf clean all
dnf makecache
dnf repolist、