Breaking

Sunday, January 21, 2018

How to Upgrade CentOS 7.4 from CentOS 7.3/7.2/7.1/7.0

CentOS 7.4 Released. Recently latest version of CentOS 7.4 has been released. All the CentOS 7.3, 7.2 7.1 and 7.0 users can upgrade their system to latest release. All the users running with WHM/cPanel don’t need to do anything. WHM/cPanel will automatically upgrade their operating system to next scheduled upgrade. If you are using CentOS without cPanel, this article is helpful for you for upgrading your current CentOS 7.x to latest CentOS 7.2


Step 1 – Check Your CentOS Version

CentOS systems keep version details in /etc/redhat-release and /etc/centos-release. You just need to check content of one of these files.
cat /etc/redhat-release

CentOS Linux release 7.3.1503 (Core)

Step 2 – Backup Important Data

Before upgrading centos make sure you have taken backup of all your data to the remote location. Below are few suggested items to take backup.
  • Backup all databases ( MySQL, PostgreSQL, etc.. )
  • Backup all configuration files ( Apache, PHP, MySQL, DNS and Other services )
  • Backup all websites data running in webserver
  • Backup other service if any running on system

Step 3 – Upgrade CentOS 7

Following are the steps to help you to upgrade CentOS to latest release. Use yum upgrade command to upgrade your current running system.
yum clean all
yum update
After successful completion of above command just reboot your system.
# reboot

Step 4 – Verify Upgrade

Finally verify that your system has been upgraded successfully. To confirm it check the /etc/redhat-release file content.
cat /etc/redhat-release

CentOS Linux release 7.4.1708 (Core)

No comments: