分类: LINUX
2011-07-10 19:56:41
1.修改/etc/yum.repos.d/CentOS-Base.repo为:
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=
2.执行
64位:
rpm --import
32位:
rpm --import
3.执行
yum update
Ok了,搞定。