美文网首页
CentOS8 更换yum源

CentOS8 更换yum源

作者: 十二找十三 | 来源:发表于2020-12-01 14:01 被阅读0次
    vi /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.2.2004/AppStream/x86_64/os/
    
    
    
    vi /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.2.2004/BaseOS/x86_64/os/
    
    
    
    vi /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.2.2004/extras/x86_64/os/
    
    
    
    yum update 
    

    相关文章

      网友评论

          本文标题:CentOS8 更换yum源

          本文链接:https://www.haomeiwen.com/subject/zclswktx.html