Starting with a freshly built CentOS 4.3 slice, login as root
Create temporary directory to hold packages:
#mkdir /tmp/Upgrades
#cd /tmp/Upgrades
Erase centos-yumconf (removes CentOS 4 repos)
#rpm -e --nodeps centos-yumconf
Import CentOS 5 GPG key:
#rpm --import http://mirrors.kernel.org/centos/RPM-GPG-KEY-CentOS-5
Download and install the centos-release-5 packages (adds CentOS 5 repos), then remove packages:
#url=http://centos.sd2.mirrors.redwire.net/5.0/os/x86_64/CentOS
#wget $url/centos-release-5-0.0.el5.centos.2.x86_64.rpm
#wget $url/centos-release-notes-5.0.0-2.x86_64.rpm
#rpm -Uvh *.rpm
#rm *.rpm
Download and install these packages ( upgrades rpm and yum )
#wget $url/rpm-libs-4.4.2-37.el5.x86_64.rpm
#wget $url/rpm-4.4.2-37.el5.x86_64.rpm
#wget $url/yum-3.0.5-1.el5.centos.2.noarch.rpm
#wget $url/rpm-python-4.4.2-37.el5.x86_64.rpm
#wget $url/popt-1.10.2-37.el5.x86_64.rpm
#wget $url/glibc-2.5-12.x86_64.rpm
#wget $url/glibc-common-2.5-12.x86_64.rpm
#wget $url/beecrypt-4.1.2-10.1.1.x86_64.rpm
#wget $url/glibc-headers-2.5-12.x86_64.rpm
#wget $url/glibc-devel-2.5-12.x86_64.rpm
#wget $url/binutils-2.17.50.0.6-2.el5.x86_64.rpm
#wget $url/elfutils-libelf-0.125-3.el5.x86_64.rpm
#wget $url/elfutils-0.125-3.el5.x86_64.rpm
#wget $url/elfutils-libs-0.125-3.el5.x86_64.rpm
#wget $url/beecrypt-python-4.1.2-10.1.1.x86_64.rpm
#wget $url/python-2.4.3-19.el5.x86_64.rpm
#wget $url/python-devel-2.4.3-19.el5.x86_64.rpm
#wget $url/python-elementtree-1.2.6-5.x86_64.rpm
#wget $url/python-sqlite-1.1.7-1.2.1.x86_64.rpm
#wget $url/python-urlgrabber-3.1.0-2.noarch.rpm
#wget $url/neon-0.25.5-5.1.x86_64.rpm
#wget $url/libxml2-2.6.26-2.1.2.x86_64.rpm
#wget $url/libxml2-python-2.6.26-2.1.2.x86_64.rpm
#wget $url/db4-4.3.29-9.fc6.x86_64.rpm
#wget $url/libselinux-1.33.4-2.el5.x86_64.rpm
#wget $url/libsepol-1.15.2-1.el5.x86_64.rpm
#wget $url/mcstrans-0.1.10-1.el5.x86_64.rpm
#wget $url/m2crypto-0.16-6.el5.1.x86_64.rpm
#wget $url/krb5-libs-1.5-17.x86_64.rpm
#wget $url/openssl-0.9.8b-8.3.el5.x86_64.rpm
#wget $url/readline-5.1-1.1.x86_64.rpm
#rpm -Uvh *.rpm --nodeps
Clean up some old stuff
#rm -f /var/lib/rpm/__*
#rpm --rebuilddb
#yum clean all
Upgrade wget
#yum -y upgrade wget
Install kernel 2.6.18-8 packages to avoid dependency issues during the next yum upgrade
#wget http://centos.sd2.mirrors.redwire.net/5.0/os/x86_64/CentOS/kernel-2.6.18-8.el5.x86_64.rpm
#wget http://centos.sd2.mirrors.redwire.net/5.0/os/x86_64/CentOS/kernel-headers-2.6.18-8.el5.x86_64.rpm
#rpm -ivh --nodeps kernel-*
Remove old kernel
#rpm -e kernel-2.6.9-34.0.2.EL kernel-2.6.9-34.EL
Upgrade all packages:
#yum -y upgrade
Remove downloaded packages and reboot
#cd
#rm -rf /tmp/Upgrades
#reboot
0 komentar:
Posting Komentar