After the Chinese New Year's Eve, I had nothing to do at home. I just upgraded my server. The system environment I installed was centOS6.5. recently, with the software upgrade, I found that many software was not installed, and only the system could be upgraded, I found a tutorial on the internet. the content of various installation blogs is similar. recently, redhat implements online update and upgrade, although it still needs to be restarted [3]. the steps are as follows: for details, [1] is the most operational. if you are interested, you can go to the original author's link. here, I just want to talk about the personal installation
After the Chinese New Year's Eve, I had nothing to do at home. I just upgraded my server. The system environment I installed was centOS6.5. recently, with the software upgrade, I found that many software was not installed, and only the system could be upgraded, I found a tutorial online.
The content introduced by various installation blogs is also similar. recently, redhat has implemented online update and upgrade, although it still needs to be restarted [3].
The procedure is as follows:
For details, [1] is the most operational. if you are interested, you can go to the original author's link. here, we just talk about your personal installation experience.
Main steps:
1. add a repo File: (root permission is required here)
/Etc/yum. repos. d/upgradetool. repo
Name = CentOS-$ releasever-Upgrade Tool
Base url = 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 Toolkit
Yum install RedHat-upgrade-tool preupgrade-assistant-contents
3. View available update directories
Preupg-l
If the result is CentOS6_7, continue:
Preupg-s CentOS6_7
At this time, it will analyze the potential risks of upgrading the system. The danger here is classified. for details, refer to my reference article.
4. upgrade the system
Centos-upgrade-tool-cli -- network 7 -- instrepo = http://mirror.centos.org/centos/7/ OS /x86_64/
Here, if the prompt is displayed: The upgrade is dangerous and cannot be upgraded, force the upgrade directly:
Centos-upgrade-tool-cli-f -- network 7 -- instrepo = http://mirror.centos.org/centos/7/ OS /x86_64/
During the upgrade process, the gpg key of the CentOS7 software warehouse is interrupted. execute: (if an upgrade error occurs during the upgrade process, run the following command line first, then execute one of the above two commands. The following is a forced upgrade, which is used by the system administrator with caution)
Rpm -- import http://mirror.centos.org/centos/7/ OS /x86_64/RPM-GPG-KEY-CentOS-7 (ensure that all packages are installed while upgrading, pay attention to installation logs)
Then run the system upgrade command.
5: After executing the above command, the rest is to restart. The process takes a long time and you need to wait patiently.
[1]: http://www.linuxidc.com/Linux/2015-08/121665.htm
[2]: http://www.centoscn.com/image-text/setup/2014/0901/3634.html
[3]: http://www.centoscn.com/image-text/setup/2014/0901/3634.html