1. Add the source of the upgrade tool
[Email protected] ~]# More/etc/yum.repos.d/upgradetool.repo
[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
2. Install the Upgrade tool
Yum Install Redhat-upgrade-tool preupgrade-assistant-contents
3. Import Gpg-key
sudo rpm--import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
4, the system upgrade assessment to see if there is a risk of upgrade
View available catalogs for upgrade
Preupg-l
If the result is centos6_7, continue execution:
Preupg-s centos6_7
5. Upgrade tool (Force mandatory upgrade)
sudo centos-upgrade-tool-cli--network 7--force--instrepo=http://mirror.centos.org/centos/7/os/x86_64/
If the following error occurs, then execute under sudo centos-upgrade-tool-cli--network 7--force--instrepo=http://mirror.centos.org/centos/7/os/x86_64/
Downloading failed:errors were encountered while downloading packages.
Prompt to restart when all is done
Testing upgrade Transaction
RPM Transaction 100% [=========================================================================================== ====]
RPM Install 100% [=============================================================================================== ====]
Setting up system for upgrade
Finished. Reboot to start upgrade.
6, after the package download is complete, follow the prompts to restart the machine, waiting for the upgrade to complete.
This article is from "Linux Security Advisor" blog, reprint please contact the author!
Add Source for Upgrade tool Cnetos 6.5 upgrade 7.0