Linux CentOS yum中科大源

阅读(7471)

更换yum源到国内,可以获得更高的速度。推荐选择中国科技大学的yun源,使用广泛、资源收录全。

  1. 进入到yum源管理目录:

    cd /etc/yum.repos.d/

  2. 备份Base源:

    mv CentOS-Base.repo CentOS-Base.repo.bak

  3. 根据不同操作系统选择不同url源:

Centos 6

wget -O CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2

Centos 7

wget -O CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3

via: https://lug.ustc.edu.cn/wiki/mirrors/help/centos

Tags: centos