Centos 8 阿里yum源配置


编辑

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、


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM