尝试让 yum 从自己的存储库安装依赖项
我已经在我拥有的机器上创建了一个 yum 存储库。我已将某些 RPM 放入其中并创建了存储库。在我的第二台机器上,我可以通过执行 yum 列表来查看这些存储库及其中的文件。第二部分是我已经完成了一个规范文件,该文件创建了一个 rpm,该 rpm 依赖于此特定存储库中的所有 RPM,但是当我执行 yum installcreatedrpm 时,它会确定正确的依赖项,但不会从我自己的存储库安装它们。
我曾尝试在网络上搜索此内容,但不幸的是没有运气。如果有人能指出我正确的方向,那就太好了。
谢谢
I have created a yum repository on a machine I have. I have thrown certain RPM's into it and created the repo. On my second machine I am able to view these repos and the files in them by doing a yum list. The second part of this is I have done a spec file that creates an rpm that depends on all of the RPM's in this specific repo but when I do a yum install createdrpm it determines the correct dependencies, but does not install them from my own repo.
I have tried searching over the web for this, but no luck unfortunately. If someone can point me in the right direction that would be great.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
rpm
spec
文件中,Requires
部分应列出 yum 存储库中显示的软件包名称,而不是 rpm 文件名。例如:
rpm
spec
文件应包含:In the
rpm
spec
file, theRequires
section should list the package names that are shown in the yum repo, not the rpm filenames.For example:
The
rpm
spec
file should have: