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


posted @ 2020-09-08 19:04  为了等  阅读(1279)  评论(0编辑  收藏  举报