系统相关
首页 > 系统相关> > linux 绑定阿里云的源

linux 绑定阿里云的源

作者:互联网

修改AppStream对应的配置文件

vim /etc/yum.repos.d/CentOS-AppStream.repo
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
baseurl=https://mirrors.aliyun.com/centos/8.1.1911/AppStream/x86_64/os/
修改BaseOS库
vim /etc/yum.repos.d/CentOS-Base.repo 
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=https://mirrors.aliyun.com/centos/8.1.1911/BaseOS/x86_64/os/
修改Extra库
vim /etc/yum.repos.d/CentOS-Extras.repo
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=https://mirrors.aliyun.com/centos/8.1.1911/extras/x86_64/os/

标签:BaseOS,centos,绑定,infra,repo,阿里,mirrorlist,linux,AppStream
来源: https://blog.csdn.net/A_java_c/article/details/117387304