2021年2月24日 星期三

Change CentOS 6 repo to vault

因為 CentOS 6 已在 2020年11月底結束維護支援
若還有舊機要裝套件 (yum install) 或更新 (yum update)
會出現:
Setting up Update Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

必需調整 repo 的指向,修改 /etc/yum.repos.d/CentOS-Base.repo
comment 所有的 mirrorlist
uncomment 所有的 baseurl
將 baseurl 中的 http://mirror.centos.org/centos/$releasever 取代成 http://vault.centos.org/6.10
修改後的檔案:
直接抓取使用
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.old # 備分
wget https://gist.githubusercontent.com/pankpan/7ec737be25bac94922c543629aa968f9/raw/94f1e53a00d059d52470168145bf8019d627ab4e/CentOS-Base.repo
yum clean all

 

沒有留言:

Update ESXi to 8.0.3d using depot file

本例是從 8.0U3 升到 8.0U3d,若從更舊的版本升級,不確定是否適用 先把所有 VM 關機,進入維護模式 把 depot 升級檔 VMware-ESXi-8.0U3d-24585383-depot.zip 放到機器內 ssh ESXi 先查看 depot 有那些 Prof...