CentOS 6 upgrade to Centos7

1. Check the current version of the system under the
cat / etc / redhat-release

Configuration update source
VI /etc/yum.repos.d/upgrade.repo
[upgrade] name = upgrade
BaseURL = HTTPS: //buildlogs.centos.org/centos/6/upg/x86_64/
enable. 1 =
gpgcheck = 0

Assistant to install the update
due to higher centos 6.5 version comes with one assistant, so installing a need to uninstall the older:
yum -y the ERASE openscap
yum install preupgrade RedHat-upgrade-Tool-Assistant--y Contents

Upgrade checker potential problems
preupg -s CentOS6_7

Online updates, online updates will be slower. You can download a good image, local updates.
centos-upgrade-tool-cli --network 7 --instrepo = https: //mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

Local update.
CD / tmp
wget https://mirrors.aliyun.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso
CentOS-upgrade-Tool - ISO-CLI = / tmp / the CentOS -x86_64-DVD--7 1810.iso
(If you have questions you can add --force parameter, but not recommended for production environments)

Once set up, the system performs a restart, reboot the system will enter the updated operating
interface can see the need to update the package, there is a progress bar. In addition, some error is normal, because different versions of the software are not the same path
after the update is complete, enter the system interface. View version reconfirm

Guess you like

Origin www.cnblogs.com/larrypeng/p/11539597.html