关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

centos6 yum源配置 2021(停更新后可用源)

发布时间:2021-03-29 20:13:51

删除原来的repo

rm  -rf /etc/yum.repos.d/*.repo


下面另存为CentOS-Base.repo  

内容如下所示:


[base]

name=CentOS-6.10 - Base - valut.centos.org

baseurl=https://vault.centos.org/6.10/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

#released updates 

[updates]

name=CentOS-6.10 - Updates - valut.centos.org

baseurl=https://vault.centos.org/6.10/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

#additional packages that may be useful

[extras]

name=CentOS-6.10 - Extras - valut.centos.org

baseurl=https://vault.centos.org/6.10/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

————————————————

清除、并更新已安装的Yum源。

 yum clean all && yum makecache



/template/Home/Zkeys/PC/Static