验证 yum 存储库的依赖关系

发布于 2024-11-28 10:15:13 字数 346 浏览 11 评论 0原文

我正在尝试创建一个自定义 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

死开点丶别碍眼 2024-12-05 10:15:14

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/*

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文