这是使用 yum 升级 CentOS Linux 4.0 的过程。据很多文档说yum完全适用于Redhat Enterprise Linux,这对RHEL用户来说是一件很好的事情。
[root@CentOS4 ~]# yum update
Setting up Update Process
Setting up Repos
addons 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
update 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
addons : ################################################## 2/2
base : ################################################## 1404/1404
update : ################################################## 18/18
extras : ################################################## 24/24
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package up2date-gnome.i386 0:4.4.5-1.centos4.5 set to be updated
---> Package mozilla.i386 37:1.7.3-19.EL4.centos4 set to be updated
---> Package centos-yumconf.noarch 0:4-4.1 set to be updated
---> Package mozilla-nss.i386 37:1.7.3-19.EL4.centos4 set to be updated
---> Package mozilla-nspr.i386 37:1.7.3-19.EL4.centos4 set to be updated
---> Package firefox.i386 0:1.0.1-1.4.3.centos4.1 set to be updated
---> Package up2date.i386 0:4.4.5-1.centos4.5 set to be updated
---> Package HelixPlayer.i386 1:1.0.3-1 set to be updated
---> Downloading header for rhn-applet to pack into transaction set.
rhn-applet-2.1.17-5.cento 100% |=========================| 17 kB 00:03
---> Package rhn-applet.i386 0:2.1.17-5.centos4.1 set to be updated
--> Running transaction check
Dependencies Resolved
Transaction Listing:
Update: HelixPlayer.i386 1:1.0.3-1 - update
Update: centos-yumconf.noarch 0:4-4.1 - update
Update: firefox.i386 0:1.0.1-1.4.3.centos4.1 - update
Update: mozilla.i386 37:1.7.3-19.EL4.centos4 - update
Update: mozilla-nspr.i386 37:1.7.3-19.EL4.centos4 - update
Update: mozilla-nss.i386 37:1.7.3-19.EL4.centos4 - update
Update: rhn-applet.i386 0:2.1.17-5.centos4.1 - update
Update: up2date.i386 0:4.4.5-1.centos4.5 - update
Update: up2date-gnome.i386 0:4.4.5-1.centos4.5 - update
Total download size: 31 M
Is this ok [y/N]:
Is this ok [y/N]: y
Downloading Packages:
(1/9): up2date-gnome-4.4. 100% |=========================| 137 kB 00:04
(2/9): mozilla-1.7.3-19.E 100% |=========================| 8.7 MB 03:21
(3/9): centos-yumconf-4-4 100% |=========================| 2.9 kB 00:00
http://mirror.centos.org/centos/4/updates/i386/RPMS/mozilla-nss-1.7.3-19.EL4.centos4.i386.rpm: [Errno 4] IOError:
Trying other mirror.
http://mirror.centos.org/centos/4/updates/i386/RPMS/mozilla-nspr-1.7.3-19.EL4.centos4.i386.rpm: [Errno 4] IOError:
Trying other mirror.
(6/9): firefox-1.0.1-1.4. 100% |=========================| 16 MB 07:21
http://mirror.centos.org/centos/4/updates/i386/RPMS/up2date-4.4.5-1.centos4.5.i386.rpm: [Errno 4] IOError:
Trying other mirror.
(8/9): HelixPlayer-1.0.3- 100% |=========================| 3.8 MB 01:54
(9/9): rhn-applet-2.1.17- 100% |=========================| 313 kB 00:17
Error Downloading Packages:
mozilla-nspr - 37:1.7.3-19.EL4.centos4.i386: failure: RPMS/mozilla-nspr-1.7.3-19.EL4.centos4.i386.rpm from update: [Errno 256] No more mirrors to try.
up2date - 4.4.5-1.centos4.5.i386: failure: RPMS/up2date-4.4.5-1.centos4.5.i386.rpm from update: [Errno 256] No more mirrors to try.
mozilla-nss - 37:1.7.3-19.EL4.centos4.i386: failure: RPMS/mozilla-nss-1.7.3-19.EL4.centos4.i386.rpm from update: [Errno 256] No more mirrors to try.
[root@CentOS4 ~]# yum update
Setting up Update Process
Setting up Repos
addons 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
update 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
addons : ################################################## 2/2
base : ################################################## 1404/1404
update : ################################################## 18/18
extras : ################################################## 24/24
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package up2date-gnome.i386 0:4.4.5-1.centos4.5 set to be updated
---> Package mozilla.i386 37:1.7.3-19.EL4.centos4 set to be updated
---> Package centos-yumconf.noarch 0:4-4.1 set to be updated
---> Package mozilla-nss.i386 37:1.7.3-19.EL4.centos4 set to be updated
---> Package mozilla-nspr.i386 37:1.7.3-19.EL4.centos4 set to be updated
---> Package firefox.i386 0:1.0.1-1.4.3.centos4.1 set to be updated
---> Package up2date.i386 0:4.4.5-1.centos4.5 set to be updated
---> Package HelixPlayer.i386 1:1.0.3-1 set to be updated
---> Package rhn-applet.i386 0:2.1.17-5.centos4.1 set to be updated
--> Running transaction check
Dependencies Resolved
Transaction Listing:
Update: HelixPlayer.i386 1:1.0.3-1 - update
Update: centos-yumconf.noarch 0:4-4.1 - update
Update: firefox.i386 0:1.0.1-1.4.3.centos4.1 - update
Update: mozilla.i386 37:1.7.3-19.EL4.centos4 - update
Update: mozilla-nspr.i386 37:1.7.3-19.EL4.centos4 - update
Update: mozilla-nss.i386 37:1.7.3-19.EL4.centos4 - update
Update: rhn-applet.i386 0:2.1.17-5.centos4.1 - update
Update: up2date.i386 0:4.4.5-1.centos4.5 - update
Update: up2date-gnome.i386 0:4.4.5-1.centos4.5 - update
Total download size: 31 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): mozilla-nss-1.7.3- 100% |=========================| 641 kB 00:28
(2/3): mozilla-nspr-1.7.3 100% |=========================| 107 kB 00:07
(3/3): up2date-4.4.5-1.ce 100% |=========================| 1.6 MB 00:56
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating: mozilla-nspr 100 % done 1/18
Updating: mozilla-nss 100 % done 2/18
Updating: up2date 100 % done 3/18
Updating: up2date-gnome 100 % done 4/18
Updating: mozilla 100 % done 5/18
Updating: centos-yumconf 100 % done 6/18
Updating: firefox 100 % done 7/18
Updating: HelixPlayer 100 % done 8/18
Updating: rhn-applet 100 % done 9/18
Completing update for up2date-gnome - 10/18
Completing update for mozilla - 11/18
Completing update for centos-yumconf - 12/18
Completing update for mozilla-nss - 13/18
Completing update for mozilla-nspr - 14/18
Completing update for firefox - 15/18
Completing update for up2date - 16/18
Completing update for HelixPlayer - 17/18
Completing update for rhn-applet - 18/18
Updated: HelixPlayer.i386 1:1.0.3-1 centos-yumconf.noarch 0:4-4.1 firefox.i386 0:1.0.1-1.4.3.centos4.1 mozilla.i386 37:1.7.3-19.EL4.centos4 mozilla-nspr.i386 37:1.7.3-19.EL4.centos4 mozilla-nss.i386 37:1.7.3-19.EL4.centos4 rhn-applet.i386 0:2.1.17-5.centos4.1 up2date.i386 0:4.4.5-1.centos4.5 up2date-gnome.i386 0:4.4.5-1.centos4.5
Complete!
[root@CentOS4 ~]#
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=903225