CentOS6升级到7

修改源

# cat >> /etc/yum.repos.d/upgradetool.repo << EOF
[upg]
name=CentOS-\$releasever - Upgrade Tool
baseurl=http://dev.centos.org/centos/6/upg/x86_64/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
EOF
# yum install redhat-upgrade-tool preupgrade-assistant-contents
# preupg -s CentOS6_7

看看检查结果,是否有不兼容的部分

# review result.html
# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7

开始升级

# centos-upgrade-tool-cli --network 7 --instrepo=http://mirror.centos.org/centos/7/os/x86_64/

[ 编辑 | 历史 ]
最近由“jilili”在“2016-02-15 09:41:07”修改