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 Properly Shutdown Linux CentOS/RHEL Server

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 Properly Reboot Linux CentOS/RHEL Server

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.

1 comment
  1. Monty Hobdy
    Monty Hobdy
    January 12, 2020 at 3:26 am

    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 *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee