Upgrade Centos6.6 to Centos7:
Step 1:
[Root @ localhost ~] # Cat/etc/yum. repos. d/upgrade. repo [upgrade] name = upgradebaseurl = http://dev.centos.org/centos/6/upg/x86_64/enable=1gpgcheck=0
Step 2:
[Root @ localhost ~] # Yum install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
Step 3:
[Root @ localhost ~] # Preupg
Step 4:
[Root @ localhost ~] # Rpm -- import ~~] # Redhat-upgrade-tool -- network 7.0 -- instrepo http://mirrors.163.com/centos/7.0.1406/ OS /x86_64/ (265/266): zlib-1.2.7-13.el7.x86_64.rpm | 89 kB (266/266 ): zlib-devel-1.2.7-13.el7.x86_64.rpm | 49 kB 00:00 testing upgrade transactionrpm transaction 100% [========================== ========================================================== ========================================================== =] rpm install 100% [==================================== ========================================================== ==========================================================] setting up system for upgradeFinished. reboot to start upgrade.
The process of upgrading centos7 is actually very simple. This is also an advantage of the Linux kernel system. You can directly use simple commands to upgrade the system.