Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40158
  • 博文数量: 9
  • 博客积分: 206
  • 博客等级: 入伍新兵
  • 技术积分: 90
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-26 09:36
文章分类
文章存档

2012年(9)

我的朋友

分类: LINUX

2012-06-27 14:59:57

编辑 /etc/yum.repos.d/CentOS-Base.repo 文件如下:


# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. 
You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
     
#released updates
     
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
     
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
     
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
     
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
enabled=0
gpgkey=

yum makecache 即可。

阅读(1945) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~