Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent.
This quick guide will explain the steps you need to update CentOS or upgrade CentOS to the latest version.Use the “update” option to upgrade all of your CentOS system software to the latest version with one operation.
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 CentOS or Upgrade CentOS
1. Check Your CentOS Version.
# cat /etc/redhat-releaseCentOS Linux release 7.1.1503 (Core)
2. Backup 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. Upgrade with yum update.
# yum clean all # yum update
4. Reboot the server with below command.
5. Verify that your system has been upgraded successfully
# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
I hope this article gives you some ideas and essential guidance on how update CentOS or upgrade CentOS operating systems.
Note : Check your system, make sure it is functioning as normal and verify every service that was installed before the upgrade.