time 
设为首页】【收藏本站
当前位置: 主页 > Unix/Linux > Linux管理 > Linux维护 > yum的配置

yum的配置

时间:2009-11-27 00:00 点击:702次 字体:[ ]





                                找到好的就快快记下来,以备查用。
第一配置文件
#vi rhel-debuginfo.repo
[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://ftp.sjtu.edu.cn/centos/5/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://ftp.sjtu.edu.cn/centos/5/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://ftp.sjtu.edu.cn/centos/5/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://ftp.sjtu.edu.cn/centos/5/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://ftp.sjtu.edu.cn/centos/5/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://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=
http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
第二配置文件
# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=
http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=
http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

第三配置文件

#vi mirrors-rpmforge
http://apt.sw.be/redhat/el5/en/$ARCH/dag
http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag
http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
#
http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag
http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag
http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag
http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag
http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag
http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag
http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag
  第四个配置文件
# vi rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL:
http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl =
http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist =
http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Found 报这个错误时,修改repo   gpgcheck=0


本文地址 : http://www.fengfly.com/plus/view-163996-1.html
标签: 配置 gpgkey ARCH/dag gpgcheck
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码: