yum源切换

切换原因

因为现有的yum源不满足我们的安装需求所以我们需要切换到资源更广阔的yum源 比如aliyun 的 网易的 等等

#备份本机软件源 

cd /etc/yum.repos.d 

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

#下载新的CentOS-Base.repo 到/etc/yum.repos.d/ 

#CentOS 7 

wget -O /etc/yum.repos.d/CentOS-Base.epo http://mirrors.aliyun.com/repo/Centos-7.repo 

#生成缓存 

yum makecache

猜你喜欢

转载自blog.csdn.net/chenchao_JAVA/article/details/107663948