Centos7配置alibab的yum源

  1. 进入到yum源配置文件目录 cd /etc/yum.repos.d/
  2. 拉取阿里云yum源 wget http://mirrors.aliyun.com/repo/Centos-7.repo

如果wget 不生效,可以执行 yum -y install wget 命令

  1. 备份原来的yum源配置文件
    mv CentOs-Base.repo CentOs-Base.repo.bak

  2. 替换掉系统自带的配置文件
    mv Centos-7.repo CentOs-Base.rep

  3. yum clean all
    yum makecache
    yum update

发布了19 篇原创文章 · 获赞 18 · 访问量 5261

猜你喜欢

转载自blog.csdn.net/justLym/article/details/104759520