All CentOS 7.0, 7.1 and 7.2 users can upgrade their system to the latest version CentOS 7.3.
In this article I will explain how to update your old CentOS version to latest version.
You can use the “update” option to upgrade all your CentOS system software to the latest version with one command.
Please take note that the use of “-y” is not recommended for yum operation. Surely you have some time to review the packages to be installed on your system by using “yum update” before allowing yum to proceed. In earlier version of CentOS, we are required to restore all programs and data but now with CentOS 7, we can upgrade directly, that being said that unexpected situation still possible, therefore, it is recommended to create a full backup of your server one time before upgrading process.
Steps to Update or Upgrade CentOS Version
Follow the below steps to update or upgrade CentOS version.
1. First of all check the current version of your running CentOS using below command.
# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core)
2. Take backup of important Data and directory (Example: /etc, /var, /opt). I suggest, for VMware virtual machines, take a good vmware snapshot or run a full backup of the operating systems and data. (MySQL, Apache, NGINX, DNS or etc).
3. Now upgrade with yum update command as shown below.
# yum clean all # yum update
4. After successfully upgrade reboot the system using below command.
5. Now verify the system current running CentOS version.
# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
You can see above your system has been upgraded successfully.