centos 6.5 升級到 centos 7

舉報 發佈者:tech-1
熱度0票  瀏覽1168次 【共0條評論】【我要評論
下載需要的package
mkdir -p /root/upgrade
cd /root/upgrade
wget http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-contents-0.5.13-1.0.5.el6.centos.noarch.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.2-33.0.3.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm

安裝"升級前幫手"

yum localinstall preupgrade-assistant-*

 執行 "升級前幫手"

preupg
安裝 redhat-upgrade-tool

yum localinstall redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm

匯入 centos 7的 rpm gpg key
rpm --import http://ftp.plusline.de/centos/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7
開始跑 升級工具
redhat-upgrade-tool --network 7.0 --instrepo http://ftp.plusline.de/centos/7.0.1406/os/x86_64/
redhat-upgrade-tool --network 7.0 --instrepo http://ftp.plusline.de/centos/7.0.1406/os/x86_64/ --force
 

reboot就好 

cd /mnt/var/lib/rpm
rm __*
init 6
cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)




上一篇 下一篇
來許願池許個願~願望都成真
查看全部回復【已有0位網友發表了看法】