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.

See also  How To Get Email Alerts for SSH Login on Linux 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)

See also  How to Install Zimbra Collaboration Suite 7.1.4 Mail Server on CentOS 6.2 x86_64

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.

Comments

1 Comment

  • Avatar Monty Hobdy says:

    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 *