CentOS 6.7 has been released, If you are using older version 6.x release of CentOS operating system, this article will help to upgrade CentOS to latest release 6.8. This new release has lots of security changes and updates to packages. Currently, my server is running CentOS 6.7. Follow the below steps to upgrade it.
Check Current CentOS Release:
# cat /etc/redhat-release CentOS release 6.7 (Final)
Upgrade CentOS to Latest Release:
Following are the steps to help you to upgrade CentOS to the latest release. Before upgrading centos make sure you have taken backup of all your data to a remote location.
For you reference, first..below the items, you may need to first. It may be there is more database. So take a backup of all your data first.
Step 1: Backup Important Data
Below is 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 2: Upgrade CentOS
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.
Step 3: 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 release 6.8 (Final)