How to Update CentOS or Upgrade CentOS to the Latest Version

update centos

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.

READ  How to Install "man" Command on Linux CentOS 6.2

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-release
CentOS 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)

READ  How to Install php 5.3 on CentOS or RHEL

3. Upgrade with yum update.

# yum clean all
# yum update

4. Reboot the server with below command.

# reboot

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.

One comment on “How to Update CentOS or Upgrade CentOS to the Latest Version

  • Monty Hobdy

    I don’t even know how I ended up here, but I thought this post was good. I do not know who you are but certainly you are going to a famous blogger if you aren’t already 😉 Cheers!|

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>