aovo - 笔记 https://aovo.flyclouds.top/index.php/category/%E7%AC%94%E8%AE%B0/ 我的学习笔记 centos换yum源 https://aovo.flyclouds.top/index.php/archives/44/ 2020-04-27T10:17:00+00:00 一装系统就应该先换源,不然体验太难受了官方的源基本上都在国外,速度慢的让人捉急备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup ali yumwget -o /etc/youm.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo二选一curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 网易163 yumwget -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo二选一curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo 清除缓存yum clean all重建缓存yum makecache 更新yum update 下载wget工具yum install -y wget进入yum源配置文件夹cd /etc/yum.repos.d/备份mv CentOS-Base.repo CentOS-Base.repobakali yumwget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo网易163yumwget -O CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo yum clean all yum makecache yum update