banner
NEWS LETTER

Centos7更换阿里源

Scroll down

本文作者:丁辉

Centos7更换阿里源

  1. 备份本地Yum源

    1
    2
    mkdir -p /etc/yum.repos.d/backup/
    mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup/
  2. 下载阿里云Yum源

    1
    2
    curl -O http://mirrors.aliyun.com/repo/Centos-7.repo
    curl -O http://mirrors.aliyun.com/repo/epel-7.repo
  3. 删除缓存数据

    1
    yum clean all
  4. 创建元数据缓存

    1
    yum makecache

I'm so cute. Please give me money.

其他文章
cover
Centos-Devtoolset升级Gcc
  • 70/01/01
  • 00:00
  • Linux-Docs
cover
Centos安装Python
  • 70/01/01
  • 00:00
  • Linux-Docs
目录导航 置顶
  1. 1. Centos7更换阿里源
请输入关键词进行搜索