登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

杨树叶子的博客

 
 
 

日志

 
 
 
 

CentOS YUM国内更新源配置  

2007-03-20 09:24:48|  分类: Linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

首先是备份/etc/yum.repos.d/CentOS-Base.repo文件,
然后把下载的和你系统相对应的CentOS-Base.repo 替换/etc/yum.repos.d/CentOS-Base.repo 文件

然后#yum check-update

----------------------------------------

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davisfor CentOS.
# The mirror system uses the connecting IP address of the clientand the
# update status of each mirror to pick mirrors that are updated toand
# geographically close to the client.  You shoulduse this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you cantry the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-4.4 - Base
baseurl=http://mirror.be10.com/centos/4.4/os/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

#released updates
[update]
name=CentOS-4.4 - Updates
baseurl=http://mirror.be10.com/centos/4.4/updates/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

#packages used/produced in the buildbut not released
[addons]
name=CentOS-4.4 - Addons
baseurl=http://mirror.be10.com/centos/4.4/addons/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

#additional packages that may beuseful
[extras]
name=CentOS-4.4 - Extras
baseurl=http://mirror.be10.com/centos/4.4/extras/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

#additional packages that extendfunctionality of existing packages
[centosplus]
name=CentOS-4.4 - Plus
baseurl=http://mirror.be10.com/centos/4.4/centosplus/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

#contrib - packages by CentosUsers
[contrib]
name=CentOS-4.4 - Contrib
baseurl=http://mirror.be10.com/centos/4.4/contrib/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

 

 

  评论这张
 
阅读(90)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018