免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1678 | 回复: 3

求助RHEL 5 yum 错误 [复制链接]

论坛徽章:
0
发表于 2010-09-05 15:59 |显示全部楼层
我把RHEL5 光盘里的的server底下说有的RPM包拷到 /home/software 底下,定义YUM下载源的文件为 /etc/yum.repos.d/software.repo


####software.repo的内容为:

[root@localhost /]# cat /etc/yum.repos.d/software.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///home/software
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

但是我在执行yum install cpus 的时候却出现了

[root@localhost /]# yum install cpus
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
file:///home/software/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/home/software/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
No package cpus available.
Nothing to do


有人知道如何解决这样的问题吗?在此谢过

论坛徽章:
0
发表于 2010-09-05 16:52 |显示全部楼层
cd /home/software

论坛徽章:
0
发表于 2010-09-05 16:52 |显示全部楼层
不好意思,刚发信息太快了
/home/software
createrepo .

注意上面那个点

招聘 : 技术支持/维
论坛徽章:
0
发表于 2010-09-05 18:27 |显示全部楼层
上面的正解
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP