Chinaunix

标题: yum源问题 [打印本页]

作者: tingfengmanbu    时间: 2008-09-20 11:04
标题: yum源问题
请问下各位大侠谁安装过as4的yum,小弟是参照http://www.idcnews.net/html/edu/linux/20070101/288810.html安装的
但是安装完成后,使用时报错
Error: Bad repository file ///etc/yum.repos.d/as4-base.repo.
Error: Bad repository file ///etc/yum.repos.d/as4-update.repo.
想知道各位安装过的大侠是怎么解决的,
或者谁可以告诉我rpm包的下载地址也可以,谢谢了。php5,mysql5
作者: ipaddr    时间: 2008-09-20 11:04
repo的文件格式不对。

找RPM包,可以上RPMfind等。
作者: tingfengmanbu    时间: 2008-09-20 11:26
再线等。。。
作者: loveradmin    时间: 2008-09-20 11:29
你直接做个本地YUM不就行了 .
你像采用cent os 5的YUM源,
在/etc/yum.repo.d/rhel5.repo 里修改!
作者: tingfengmanbu    时间: 2008-09-20 11:33
原帖由 loveradmin 于 2008-9-20 11:29 发表
你直接做个本地YUM不就行了 .
你像采用cent os 5的YUM源,
在/etc/yum.repo.d/rhel5.repo 里修改!

我没centos5的盘。。去网上找rpm包,php和mysql基本都是4的。。
作者: tingfengmanbu    时间: 2008-09-20 12:12
那位大侠能给个mysql5的rpm包也可以。。谢谢了。。
PHP5的我找到了。
作者: tingfengmanbu    时间: 2008-09-20 13:29
看来今天不是发帖的好日子。。
作者: tingfengmanbu    时间: 2008-09-20 13:41
原帖由 ipaddr 于 2008-9-20 13:34 发表
repo的文件格式不对。

找RPM包,可以上RPMfind等。

您好我的文件格式:/etc/yum.repos.d/as4-update.repo的
#released updates
update]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

/etc/yum.repos.d/as4-base.repo的
sed base
[base]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i386/RedHat/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
我应该怎么写呢?
作者: ypf_hello    时间: 2008-09-20 13:45
1.进入/etc/yum.repos.d/目录中
2.建一文件一.repo结尾
3.在xxx.repo文件中写入
[rhel4]
name=rhel4
baseurl=///usr/local/rhel4/
enabled=1
其中baseurl那行路经填rhel4光盘内容所在的目录
我是把rhel4光盘复制到/usr/local/rhel4/目录中的
作者: ypf_hello    时间: 2008-09-20 13:55
[base]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i386/RedHat/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub
假设你把光盘内容复制到/usr/local/rhel4/目录中这样写
[base]
name=Red Hat Enterprise AS release 4 Updates
baseurl=file:///usr/local/rhel4
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

当你把光盘内容复制到/usr/local/rhel4目录中后,先安装createrepo开头的一个包。
然后在/usr/local/rhel4/目录下执行命令createrepo .
千万别忘了后面的点
作者: tingfengmanbu    时间: 2008-09-20 14:04
原帖由 ipaddr 于 2008-9-20 13:34 发表
repo的文件格式不对。

找RPM包,可以上RPMfind等。

您好,确实是格式问题,现在已经好了,正在使用中,谢谢您了,我想把分给您和下面呢个侠客,希望BZ大人可以帮忙下,谢谢了
作者: linuxpf    时间: 2008-09-20 15:19
MySQL官方就有直接的RPM包,以后如果不知道那里去下载,去这里:
www.rpmfind.net
:wink:
作者: tingfengmanbu    时间: 2008-09-20 20:40
发现好心人好多。。不知道分给谁了
BZ大人来下帮忙分下这20分好么??谢谢了。。
作者: freezingdawn    时间: 2008-09-21 02:25
这个是要花钱买的罢
作者: tingfengmanbu    时间: 2008-09-23 14:29
原帖由 freezingdawn 于 2008-9-21 02:25 发表
这个是要花钱买的罢

CENTOS5的是免费的。redhat的是收费的。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2