Professional Documents
Culture Documents
# vi /etc/yum.repos.d/upgrade.repo
[upgrade]
name=upgrade
baseurl=http://buildlogs.centos.org/centos/6/upg/x86_64/
enabled=1
gpgcheck=0
PreUpgrade Assistant:
Run the following command to check the potential problem you might encounter with an upgrade from CentOS 6 to CentOS 7 before making a changes to the system.
# preupg
From the output of the previous command you can find what packages will be affected by this upgrade.
As per the man page, the following command is used to upgrade CentOS 6; this will download the necessary packages from the internet:
# centos-upgrade-tool-cli --network=7 --force --instrepo=http://vault.centos.org/7.0.1406/os/x86_64/
........
setting up system for upgrade
Finished. Reboot to start upgrade.
# reboot
Upgrade to CentOS 7:
The server will boot with the redhat-upgrade-tool kernel to upgrade the CentOS 6, now you can find the upgrade progress/activity via console.
Now you can see the installation of the packages.
Some times after the reboot you might get an error like this:
grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory