[問題] CentOS 5.3升級5.11 yum無法使用

看板Linux作者 (自強不息!!)時間7年前 (2018/08/08 20:23), 7年前編輯推噓5(5010)
留言15則, 5人參與, 7年前最新討論串1/2 (看更多)
如題,請教大家關於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

08/08 21:17, 7年前 , 1F
自行把5.11mirror回來在內部網路建一個repository
08/08 21:17, 1F

08/08 21:23, 7年前 , 2F
抓新的release rpm來裝,yum update
08/08 21:23, 2F

08/08 21:25, 7年前 , 3F
fedora和centos我都這樣搞,官方的升級有點麻煩
08/08 21:25, 3F

08/09 04:42, 7年前 , 4F
感謝兩位大大回覆,目前正按照提示設法解決
08/09 04:42, 4F

08/11 23:36, 7年前 , 5F
如果你軟體不支援7,倒也不一定需要update吧?
08/11 23:36, 5F

08/11 23:37, 7年前 , 6F
如果是資安考量, 應該排定時程汰換
08/11 23:37, 6F

08/11 23:57, 7年前 , 7F
謝謝j大,需要使用yum安裝vsftp及xdmcp等程式
08/11 23:57, 7F

08/13 23:49, 7年前 , 8F
建議你用os7 + docker 來解才是長遠之計
08/13 23:49, 8F

08/14 15:07, 7年前 , 9F
老軟體很麻煩的...docker+1
08/14 15:07, 9F

08/15 08:54, 7年前 , 10F
簡單來說是主機用 centos7 安裝 docker-ce 之後
08/15 08:54, 10F

08/15 08:55, 7年前 , 11F
把你要用的軟體封裝成 image 再用 docker 起
08/15 08:55, 11F

08/15 08:55, 7年前 , 12F
你的特殊軟體就 run 在 container 裡面
08/15 08:55, 12F

08/15 08:56, 7年前 , 13F
這樣你的特殊軟體可以帶著走 到任何一台有 docker 的主
08/15 08:56, 13F

08/15 08:56, 7年前 , 14F
機都能跑起來
08/15 08:56, 14F

08/15 08:57, 7年前 , 15F
外面主機也可以跟上最新的更新
08/15 08:57, 15F
文章代碼(AID): #1RQk2uwE (Linux)
文章代碼(AID): #1RQk2uwE (Linux)