利用CentOS的DVD安装文件本地更新现有的Centos,速度非常快。
1 将CentOS-4.6-x86_64-binDVD.iso 下载到一个目录
(因为有多台机器需要升级,可以采用nfs)
2 mkdir /mnt/iso
3 mount -t iso9660 -o loop CentOS-4.6-x86_64-binDVD.iso /mnt/iso
4 修改/etc/yum.repos.d/CentOS-Base.repo
将所有mirrorlist改成baseurl=file:///mnt/iso/
5 将gpgcheck=1 改成gpgcheck=0
6 yum remove srptools
(上面那步解决:Error: Missing Dependency: kernel-ib is needed by package srptools)
7 yum upgrade
8 一路选择yes
9 最后# cat /etc/redhat-release
>CentOS release 4.6 (Final)
初步升级完成