Linux Administrator

How To Upgrade CentOS 6.8 From CentOS 6.1/6.2/6.3/6.4/6.5/6.6/6.7

If you are using CentOS OS Older version 6.x release. This article will help you to upgrade CentOS to latest release 6.8. In this new release there are lots of security changes and updates are available.

Currently I am suing CentOS 6.7, in this article I am going to upgrade this version. Follow the below steps to upgrade it.

Verify Current CentOS Release

Follow the below command to check the current release.

# cat /etc/redhat-release
CentOS release 6.7 (Final)

Alternatively

# cat /etc/issue
CentOS release 6.7 (Final)
Kernel \r on an \m

Upgrade CentOS to Its Latest Release

Follow the below steps to upgrade the CentOS. Before Upgrading the CentOS OS make sure you have taken backup of all your data to remote location.

Step #1: Backup all Important Data

I will suggest please take backup of below items.

  • All databases backup such as MySQL, PostgreSQL, MariaDB, etc.
  • All configuration file backup such as Apache, PHP, MySQL, DNS, etc.
  • Backup of running websites root documents.
  • Take backup of all other services if running on system.

Step #2: Upgrade CentOS

To upgrade the CentOS you can use the yum command on running system.

# yum clean all
# yum update glibc\*
# yum update rpm\* yum\* python\*
# yum clean all
# yum update

After successful completion of above command now reboot your system

# reboot

Step #3: Verify CentOS Upgrade

Your system has been upgraded successfully. Run the below command to confirm it.

# cat /etc/redhat-release
CentOS release 6.8 (Final)

I hope this article will help to upgrade your CentOS OS. If you have any queries and problem please comment in comment section.

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

1 Comment

  • Hi Santosh,
    Thanks for the method but doesn’t work for me.

    [root@name ~]# more /etc/redhat-release
    CentOS release 6.5 (Final)

    root@name ~]# yum update
    Loaded plugins: fastestmirror, refresh-packagekit
    Determining fastest mirrors
    core | 3.7 kB 00:00
    core/primary_db | 4.4 MB 00:21
    Setting up Update Process
    No Packages marked for Update
    [root@name ~]#reboot
    [root@name ~]# more /etc/redhat-release
    CentOS release 6.5 (Final)

    Do you know why?
    Thanks.

Leave a Comment