linux优化yum源

我只是一个虾纸丫 提交于 2020-02-09 03:35:01

****centos7优化yum下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/)

1、优化基础的yum源文件
通过阿里镜像源进行优化: curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
在这里插入图片描述
2、优化扩展的yum源文件
通过阿里镜像源进行优化: wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

在这里插入图片描述

检查可用的yum源信息
yum makecache
yum repolist

在这里插入图片描述

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!