Upgrading Centos 5.4 to 5.5(Not a latest version 5.6)
I had one requirement to update centos from 5.4 to 5.5 .
Now latest Centos release is 5.6 .So if I'm update the OS through yum
it will install latest version 5.6 .
So i changed my repo file as like below .In that i manually marked
repo reach centos 5.5 release only not a latest version.
#cd /etc/yum.repo.d/
#mv CentOS-Base.repo CentOS-Base.repo_org
#vi CentOS-Base.repo
[base]
name=CentOS-5 - Base
mirrorlist=http://mirrorlist.centos.org/?
release=5.5&arch=x86_64&repo=os
baseurl=http://mirror.centos.org/centos/5.5/os/x86_64
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-5 - Updates
mirrorlist=http://mirrorlist.centos.org/?
release=5.5&arch=x86_64&repo=updates
baseurl=http://mirror.centos.org/centos/5.5/updates/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
mirrorlist=http://mirrorlist.centos.org/?
release=5.5&arch=x86_64&repo=addons
baseurl=http://mirror.centos.org/centos/5.5/addons/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
mirrorlist=http://mirrorlist.centos.org/?
release=5.5&arch=x86_64&repo=extras
baseurl=http://mirror.centos.org/centos/5.5/extras/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
:wq
# yum -y update
reboot the server
# cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m
Then checked and found the os updated to centos 5.5 successfully
Cheers ... guys have a fun always
No comments:
Post a Comment
Thank You for your Comments, We will read and response you soon...