yum之镜像加速

  有没有遇到使用yum安装软件慢如龟,默认的系统使用的是centos的镜像源,我们可以修改为国内镜像源加速软件安装

 

  163)http://mirrors.163.com/.help/centos.html

 1)备份源文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

   2)下载对应文件到/etc/yum.repos.d下

wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.163.com/.help/CentOS7-Base-163.repo

安装epel.repo源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

 3)生成缓存

yum clean all
yum makecache

 

posted @ 2021-01-25 23:40  X-Wolf  阅读(720)  评论(0编辑  收藏  举报