Tuesday, 3 July 2012

Upgrade to CentOS 6.2 from CentOS 6.1 / CentOS 6.0

CentOS 6.2 is released. This is quick guide, howto upgrade to CentOS 6.2 from CentOS 6.1 or CentOS 6.0. I have tested this method on multiple CentOS 6 (servers / desktops) and everything looks work fine after upgrade.

Upgrade to CentOS 6.2 from CentOS 6.1 or CentOS 6.0:

1. Change to root User

su -
## OR ##
sudo -i

2. Backup all important data

  • Backup /etc diretory
  • Backup important logs /var/log
  • Backup web server configs and sites
  • Dump MySQL databases
  • Dump PostgreSQL databases
  • Backup all what you need if something goes wrong

3. Check list of packages that are going to be updated

yum list updates

4. Upgrade with yum update

Official way to do upgrade:

yum update
 
Another way to do update is first clean all, second update glibc, yum, rpm and python packages and then update other packages like following:

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

5. Reboot

reboot

6. Check CentOS 6.2 (Final) release info and Check your entire system

cat /etc/redhat-release
## Output ##
CentOS release 6.2 (Final)
 
Following needs redhat-lsb package
lsb_release -a
## Output ##
LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.2 (Final)
Release:        6.2
Codename:       Final 
 
Check that your system is working normally and test every services.

No comments:

Post a Comment