CentOS 5 yum国内镜像服务器 配置文件[CentOS-Base.repo]
方便大家配置使用。。。
/etc/yum.repos.d/CentOS-Base.repo
CentOS5 yum国内镜像服务器 配置文件:
[base]
name=CentOS-5 - Base
#mirrorlist=
repo=os
#baseurl=
baseurl=
gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
大家记得要导入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=
gpgcheck=1
gpgkey=
#released updates
[update]
name=CentOS-4.4 - Updates
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-4.4 - Addons
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-4.4 - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-4.4 - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-4.4 - Contrib
baseurl=
gpgcheck=1
enabled=0
gpgkey=
同样要导入key
不知道KEY在哪里可以用find 命令
find / -name RPM-GPG-KEY --print
然后用rpm --import /你的KEY目录/*.-KEY
阅读(733) | 评论(0) | 转发(0) |