CentOS6.8重装yum源详细步骤
官网源地址:https://vault.centos.org/6.0/
命令执行
sudo cp -ar /etc/yum.repos.d /etc/yum.repos.d.bak
https://vault.centos.org/6/os/x86_64/repodata/repomd.xml
CentOS-Base.repo
#
The mirror system uses the connecting IP address of the client and the
update status of each mirror to pick mirrors that are updated to and
geographically close to the client. You should use this for CentOS updates
unless you are manually picking other mirrors.
#
If the mirrorlist= does not work for you, as a fall back you can try the
remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - vault.centos.org
failovermethod=priority
baseurl=https://vault.centos.org/6.0/os/$basearch/
https://vault.centos.org/6.0/os/$basearch/
https://vault.centos.org/6.0/os/$basearch/
gpgcheck=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-6
released updates
[updates]
name=CentOS-$releasever - Updates - vault.centos.org
failovermethod=priority
baseurl=https://vault.centos.org/6.0/updates/$basearch/
https://vault.centos.org/6.0/updates/$basearch/
https://vault.centos.org/6.0/updates/$basearch/
gpgcheck=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-6
additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - vault.centos.org
failovermethod=priority
baseurl=https://vault.centos.org/6.0/extras/$basearch/
https://vault.centos.org/6.0/extras/$basearch/
https://vault.centos.org/6.0/extras/$basearch/
gpgcheck=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-6
additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - vault.centos.org
failovermethod=priority
baseurl=https://vault.centos.org/6.0/centosplus/$basearch/
https://vault.centos.org/6.0/centosplus/$basearch/
https://vault.centos.org/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-6
contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - vault.centos.org
failovermethod=priority
baseurl=https://vault.centos.org/6.0/contrib/$basearch/
https://vault.centos.org/6.0/contrib/$basearch/
https://vault.centos.org/6.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-6
sudo yum clean all
sudo yum makecache
上一篇: laravel 项目从github仓库拉取加载类库
下一篇: 已经是最后一篇了