https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11WaK1yM --阿里yum源地址
cd /etc/yum.repos.d
mkdir back
mv *.repo back
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #下载aliyun的yum源
参数解释
curl -o 指定存放路径
安装扩展源--epel.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
cd /etc/yum.repos.d/
ls
清理yum缓存:(元数据建立)--加快你的访问速度
yum clean all
缓存软件包信息: 提高搜索/安装软件的速度
yum makecache
查询yum源信息
yum repolist