CentOS5可用yum源备份

博客查了几个常用的yum源镜像,发现centos5基本年久失修,无法使用,特意从hub.docker.com内找到centos5镜像提取了yum源进行分享。累~

将以下内容覆盖到:

/etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-5 - Base
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[updates]
name=CentOS-5 - Updates
baseurl=http://vault.centos.org/5.11/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[extras]
name=CentOS-5 - Extras
baseurl=http://vault.centos.org/5.11/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[centosplus]
name=CentOS-5 - Plus
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[contrib]
name=CentOS-5 - Contrib
baseurl=http://vault.centos.org/5.11/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

建立缓存:

yum makecache

更新:

yum update -y

搞定收工,其实CentOS5也不像我想象的这么脆弱~

» 本文链接:CentOS5可用yum源备份
» 转载请注明来源:刺客博客
» 如果文章失效或者安装失败,请留言进行反馈。