Linux Administrator

How to Update CentOS or Upgrade CentOS to the Latest Version

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.

# reboot

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.

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author


Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment