Chinaunix首页 | 论坛 | 博客
  • 博客访问: 37303
  • 博文数量: 16
  • 博客积分: 1126
  • 博客等级: 少尉
  • 技术积分: 215
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-14 20:12
文章分类

全部博文(16)

文章存档

2009年(1)

2008年(15)

我的朋友
最近访客

分类: LINUX

2008-10-21 21:01:48

使用:vi /etc/yum.repos.d/CentOS.Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=
#baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=
#baseurl=
gpgcheck=1
enabled=0
gpgkey=
 
用  :%s/mirror.centos.org\/centos/mirror.be10.com\/centos变成:

# CentOS-Base.repo

#

# This file uses a new mirrorlist system developed by Lance Davis for CentOS.

# 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=

gpgcheck=1

gpgkey=

 

#released updates

[updates]

name=CentOS-$releasever - Updates

#mirrorlist=

baseurl=

gpgcheck=1

gpgkey=

 

#packages used/produced in the build but not released

[addons]

name=CentOS-$releasever - Addons

#mirrorlist=

baseurl=

gpgcheck=1

gpgkey=

 

#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

#mirrorlist=

baseurl=

gpgcheck=1

gpgkey=

 

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

#mirrorlist=

baseurl=

gpgcheck=1

enabled=0

gpgkey=

 

保存退出:wq

使用命令导入KEY:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

 


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