Centos7.7镜像源配置


环境对象 Centos7 .7

使用本地镜像源

[root@localhost yum.repos.d]# cat centos7.repo 
[local server]
name = local server
baseurl=file:///tmp
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm=gpg/RPM-GPG-KEY-CentOS=7

如何自定义使用网络镜像源

[163 server]

name = 163mirros

baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
enable=1
gpgcheck= 1
gpgkey=https://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7







例如阿里云镜像源

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



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM