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