验证 yum 存储库的依赖关系
我正在尝试创建一个自定义 rhel5.5 存储库供我使用,但我很难验证我的存储库中是否拥有每个包的所有依赖项。
我想要做的是在我的存储库中的每个包上进行试运行 yum 安装,以查看所有依赖项是否可用。
有没有简单的方法可以做到这一点?
编辑 我已经找到答案了。 下载 yum 实用程序
yum 安装 yum-utils
并进行 repoclosure
回收
它将找到您在 /etc/yum.repo.d/* 中设置的存储库的所有缺失依赖项
I am trying to create a custom rhel5.5 repository for my usage and I am having a hard time validating if I have all the dependencies for every package in my repository.
What I would want to do is do a yum install in dry run on every package in my repository to see if all the dependencies are available.
Is there an easy way to do that?
EDIT
I've found the answer.
Download yum-utils
yum install yum-utils
and do a repoclosure
repoclosure
It will find all missing dependencies of the repositories that you have set in your /etc/yum.repo.d/*
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
yum install yum-utils
并执行 repoclosure
repoclosure
它将找到您在 /etc/yum.repo.d/* 中设置的存储库的所有缺失依赖项
yum install yum-utils
and do a repoclosure
repoclosure
It will find all missing dependencies of the repositories that you have set in your /etc/yum.repo.d/*