[问题] CentOS 5.3升级5.11 yum无法使用

楼主: Willful1 (自强不息!!)   2018-08-08 20:21:41
如题,请教大家关于yum该如何设定,才能使得旧版的CentOS5.11 (由5.3升级而成)
可以正常使用yum下载?
因为所使用软件无法安装在6及7版上
因此即使第5版已不再更新,还是希望能正常沿用下去
后续附上CentOS-Base.repo内容,这个内容一定无法使用,因为目前还找不到适合的mirrorlist
比较好的地方是vault.centos.org仍可使用。
想请教大家能否提供CentOS-Base.repo档案,以及var/cache/yum/base中的mirrorlist.txt档
或是有其它方法可以解决CentOS 5 yum无法使用的问题,非常谢谢大家帮忙!
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl=http://vault.centos.org/5.11/os/$basearch/
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl=http://vault.centos.org/5.11/updates/$basearch/
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl=http://vault.centos.org/5.11/addons/$basearch/
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl=http://vault.centos.org/5.11/extras/$basearch/
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl=http://vault.centos.org/5.11/centosplus/$basearch
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl=http://vault.centos.org/5.11/contrib/$basearch
※ 编辑: Willful1 (42.72.172.18), 08/08/2018 20:26:15
作者: guezt   2018-08-08 21:17:00
自行把5.11mirror回来在内部网络建一个repository
作者: OrzOGC (洞八达人.拖哨天王)   2018-08-08 21:23:00
抓新的release rpm来装,yum updatefedora和centos我都这样搞,官方的升级有点麻烦
楼主: Willful1 (自强不息!!)   2018-08-09 04:42:00
感谢两位大大回复,目前正按照提示设法解决
作者: justoncetime (台北丛林好冷~)   2018-08-11 23:36:00
如果你软件不支援7,倒也不一定需要update吧?如果是资安考量, 应该排定时程汰换
楼主: Willful1 (自强不息!!)   2018-08-11 23:57:00
谢谢j大,需要使用yum安装vsftp及xdmcp等程式
作者: chang505 (眼线)   2018-08-13 23:49:00
建议你用os7 + docker 来解才是长远之计
作者: OrzOGC (洞八达人.拖哨天王)   2018-08-14 15:07:00
老软件很麻烦的...docker+1
作者: chang505 (眼线)   2018-08-15 08:54:00
简单来说是主机用 centos7 安装 docker-ce 之后把你要用的软件封装成 image 再用 docker 起你的特殊软件就 run 在 container 里面这样你的特殊软件可以带着走 到任何一台有 docker 的主机都能跑起来外面主机也可以跟上最新的更新

Links booklink

Contact Us: admin [ a t ] ucptt.com