Linux学习笔记-配置阿里云yum源

进入目录:
cd /etc/yum.repos.d
备份:
mkdir repobak mv
*.repo repobak/
下载CentOS-Base.repo 到路径/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清除缓存:
yum clean all
重建缓存:
yum makecache

猜你喜欢

转载自www.cnblogs.com/runt/p/12182371.html
今日推荐