分类: LINUX
2010-05-20 12:01:06
第一步:修改/etc/yum.repos.d/CentOS- Base.repo为:
[base] name=CentOS-5 - Base #mirrorlist=$releasever5&arch=$basearch& repo=os #baseurl= baseurl=5.4/os/$basearch/ gpgcheck=1 gpgkey= #released updates [update] name=CentOS-5 - Updates #mirrorlist=4&arch=$basearch&repo=updates baseurl=5.4/updates/$basearch/ gpgcheck=1 gpgkey= #packages used/produced in the build but not released [addons] name=CentOS-5 - Addons #mirrorlist=4&arch=$basearch&repo=addons baseurl=5.4/addons/$basearch/ gpgcheck=1 gpgkey= #additional packages that may be useful [extras] name=CentOS-5 - Extras #mirrorlist=4&arch=$basearch&repo=extras baseurl=5.4/extras/$basearch/ gpgcheck=1 gpgkey= #additional packages that extend functionality of existing packages [centosplus] name=CentOS-5 - Plus #mirrorlist=4&arch=$basearch&repo=centosplus baseurl=5.4/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey= #contrib - packages by Centos Users [contrib] name=CentOS-5 - Contrib #mirrorlist=4&arch=$basearch&repo=contrib baseurl=5.4/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=
第二步:64位: rpm --import
32位: rpm --import
第三步:yum update