admin 发表于 2021-1-15 14:43:25

centos 7 常用yum源配置

备份下原来的yum源
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo_bak

//upload-images.jianshu.io/upload_images/10669098-1d3e0d270b3b80bf.jpg

ae10eddeb48f8c5479a38ed430292df5e1fe7f9e.jpg

网易yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum makecache


//upload-images.jianshu.io/upload_images/10669098-c8c9e7f8b21e4776.jpg

a50f4bfbfbedab646a46f93bfd36afc379311e10.jpg


阿里云yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache


//upload-images.jianshu.io/upload_images/10669098-f5e388ca7bb4a7bb.jpg

ae10eddeb48f8c5479a38ed430292df5e1fe7f9e.jpg



//upload-images.jianshu.io/upload_images/10669098-c2e7afd0605db6ea.jpg

8326cffc1e178a82cffac85bfc03738da877e803.jpg

epel源:
yum -y install epel-release
yum clean all
yum makecache



作者:一个NPC
链接:https://www.jianshu.com/p/541c737bc947
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

页: [1]
查看完整版本: centos 7 常用yum源配置