Add Source for Upgrade tool Cnetos 6.5 upgrade 7.0

Source: Internet
Author: User
Tags gpg

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.