使用yum更新Redhat ES 4
[root@webbak ~]#wget -c http://linux.duke.edu/yum/download/2.1/yum-2.1.11-1.noarch.rpm
[root@webbak ~]##rpm -ivh yum-2.1.11-1.noarch.rpm
[root@webbak ~]# vi /etc/yum.repos.d/CentOS-Base.repo
[base]
name=RHEL4-Base
baseurl=http://centos.ustc.edu.cn/centos/4/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
#released updates
[update]
name=RHEL4 - Updates
baseurl=http://centos.ustc.edu.cn/centos/4/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
~
[root@webbak ~]# yum -y update
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key
For more information contact your distribution or package provider.
[root@webbak ~]# rpm --import http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY
[root@webbak~]# rpm --import http://mirror.be10.com/centos/4/os/i386/RPM-GPG-KEY-centos4
[root@webbak ~]# yum -y update
正在升级中.............呵呵
--> Downloading header for xorg-x11-xfs to pack into transaction set.
xorg-x11-xfs-6.8.2-1.EL.3 3% | | 8.0 kB 00:42 ETAxorg-x11-xfs-6.8.2-1.EL.3 6% |= | 16 kB 00:38 ETAxorg-x11-xfs-6.8.2-1.EL.3 12% |=== | 32 kB 00:29 ETAxorg-x11-xfs-6.8.2-1.EL.3 24% |====== | 64 kB 00:16 ETAxorg-x11-xfs-6.8.2-1.EL.3 45% |=========== | 120 kB 00:07 ETAxorg-x11-xfs-6.8.2-1.EL.3 66% |================ | 176 kB 00:02 ETAxorg-x11-xfs-6.8.2-1.EL.3 69% |================= | 184 kB 00:02 ETAxorg-x11-xfs-6.8.2-1.EL.3 84% |===================== | 224 kB 00:01 ETAxorg-x11-xfs-6.8.2-1.EL.3 99% |======================== | 264 kB 00:00 ETAxorg-x11-xfs-6.8.2-1.EL.3 100% |=========================| 265 kB 00:08
---> Package xorg-x11-xfs.i386 0:6.8.2-1.EL.31 set to be updated
---> Downloading header for miniChinput to pack into transaction set.
miniChinput-0.0.3-64.i386 71% |================= | 8.0 kB 00:00 ETAminiChinput-0.0.3-64.i386 100% |=========================| 11 kB 00:00 ETAminiChinput-0.0.3-64.i386 100% |=========================| 11 kB 00:03
---> Package miniChinput.i386 0:0.0.3-64 set to be updated
---> Downloading header for libgcc to pack into transaction set.
libgcc-3.4.6-8.i386.rpm 23% |===== | 8.0 kB 00:06 ETAlibgcc-3.4.6-8.i386.rpm 46% |=========== | 16 kB 00:04 ETAlibgcc-3.4.6-8.i386.rpm 92% |======================= | 32 kB 00:00 ETAlibgcc-3.4.6-8.i386.rpm 100% |=========================| 34 kB 00:05
---> Package libgcc.i386 0:3.4.6-8 set to be updated
---> Downloading header for netpbm to pack into transaction set.
netpbm-10.25-2.EL4.6.i386 71% |================= | 8.0 kB 00:00 ETAnetpbm-10.25-2.EL4.6.i386 100% |=========================| 11 kB 00:00 ETAnetpbm-10.25-2.EL4.6.i386 100% |=========================| 11 kB 00:03
---> Package netpbm.i386 0:10.25-2.EL4.6 set to be updated
---> Downloading header for libungif to pack into transaction set.
libungif-4.1.3-1.el4.2.i3 100% |=========================| 6.5 kB 00:00 ETAlibungif-4.1.3-1.el4.2.i3 100% |=========================| 6.5 kB 00:01
---> Package libungif.i386 0:4.1.3-1.el4.2 set to be updated
---> Downloading header for mod_ssl to pack into transaction set.
mod_ssl-2.0.52-32.3.ent.c 31% |======= | 8.0 kB 00:04 ETAmod_ssl-2.0.52-32.3.ent.c 63% |=============== | 16 kB 00:02 ETAmod_ssl-2.0.52-32.3.ent.c 100% |=========================| 25 kB 00:04