发博文
虎子---网络生活

http://blog.chinaunix.net/space.php?uid=685032

众人皆醒,我独醉!   
个人资料
  • 博客访问:136056
  • 博文数量:112
  • 博客积分:2153
  • 博客等级:大尉
  • 注册时间:2007-03-26 12:07:23
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
CENTOS 4。X 5.X更新软件源 (2007-10-31 20:04)
分类: Cent OS

 

 

CentOS 5 yum国内镜像服务器 配置文件[CentOS-Base.repo]

 

方便大家配置使用。。。
/etc/yum.repos.d/CentOS-Base.repo
CentOS5 yum国内镜像服务器 配置文件:

[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://mirror.be10.com/centos/5.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://mirror.be10.com/centos/5.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://mirror.be10.com/centos/5.0/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras

baseurl=http://mirror.be10.com/centos/5.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://mirror.be10.com/centos/5.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://mirror.be10.com/centos/5.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
 
大家记得要导入key
 
不知道KEY在哪里可以用find 命令
 
find / -name RPM-GPG-KEY --print
然后用rpm --import /你的KEY目录/*.-KEY
 
我是全部导入。然后用yum 安装软件包才不会有问题。不知道大家有没有碰到过这样的情况。这是CENTOS 5  的yum 源
 
 
 
CENTOS 4 .X的源
 
 
[base]
name=CentOS-4.4 - Base
baseurl=http://mirror.be10.com/centos/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/updates/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4
#packages used/produced in the build but not released
[addons]
name=CentOS-4.4 - Addons
baseurl=http://mirror.be10.com/centos/4/addons/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4
#additional packages that may be useful
[extras]
name=CentOS-4.4 - Extras
baseurl=http://mirror.be10.com/centos/4/extras/i386/
gpgcheck=1
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-4.4 - Plus
baseurl=http://mirror.be10.com/centos/4/centosplus/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4
#contrib - packages by Centos Users
[contrib]
name=CentOS-4.4 - Contrib
baseurl=http://mirror.be10.com/centos/4/contrib/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4
 
同样要导入key
 
不知道KEY在哪里可以用find 命令
 
find / -name RPM-GPG-KEY --print
然后用rpm --import /你的KEY目录/*.-KEY
 

亲,您还没有登录,请[登录][注册]后再进行评论