萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Linux 教學

CentOS 6.0 手動升級至 6.2:更換 163 鏡像源與 yum update 實戰

CentOS 6.0 透過更換為網易 163 鏡像源並執行 yum update 升級至 6.2,過程中遇到 GPG Key 匯入提示,確認匯入後完成升級,驗證核心版本與發行版號。

更換鏡像源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget https://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo /etc/yum.repos.d/

升級系統

yum makecache
yum update
# 提示導入 GPG Key 時輸入 y 確認

驗證升級結果

# uname -r
2.6.32-220.7.1.el6.x86_64

# cat /etc/redhat-release
CentOS release 6.2 (Final)

常見問題

  • Key 錯誤:重新執行 yum update 並確認導入。
  • 網路不穩:多次執行 yum update 直到無套件更新。
  • 升級後建議重啟載入新核心。
copyright © 萬盛學電腦網 all rights reserved