检查RPM依赖性 [英] Check RPM dependencies

查看:165
本文介绍了检查RPM依赖性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu上使用.deb软件包安装程序时,可以使用 Ubuntu软件包搜索来检查软件包的依赖关系.例如,我可以从此处看到Wireshark的依赖关系.如您所见,依赖项由红色项目符号标记.如果您知道程序所依赖的所有软件包,则可以下载它们并安装dpkg.

When you are installing a programming using .deb packages on Ubuntu, you can check dependencies of package using Ubuntu Packages Search. For example I can see dependencies of Wireshark from here. As you can see, dependencies marked by red bullet. If you know all packages your program depends them, you can download them and installing dpkg.

是否有RPM软件包的替代网站?专门用于RHEL吗?

Is there any alternative web site for RPM packages? Specially for RHEL?

我知道我可以通过其他方法(例如,使用rpm -i安装RPM软件包时)获得这些软件包的名称,但是它不是用户友好的,并且需要访问正在运行的linux.

I know that I can get these packages's name by other methods such as when installing RPM package using rpm -i, but it is not user friendly and needs access to running linux.

推荐答案

实际上,这不是一个问题,而是四个不同的问题:).

In fact that's not a one but four different questions :).

*)首先,您可以使用以下命令快速列出下载的软件包的依赖关系/要求:

*) First you can quickly list a downloaded package's dependencies/requirements by using the following commands:

$ rpm -qp mypackage.rpm --provides
$ rpm -qp mypackage.rpm --requires

*)其次,您可以使用yum实用程序来自动满足这些(有点神秘的)依赖性(假设您的所有存储库均已正确设置,并且所有依赖性都可用):

*) Second, you can use yum utility in order to satisfy these (somewhat cryptic) dependencies automatically (assuming that all your repositories are set up correctly, and all the dependencies are available):

$ sudo yum install mypackage.rpm

*)第三,有几种RPM搜索资源,上面已经建议了其中一些.我想列出另一个,仅供参考- pkgs.org .

*) Third, there are several RPM search resources, some of them already suggested above. I'd like to list another one, just for the reference - pkgs.org.

*)第四,还有一个用于RHEL5和RHEL6发行版的流行存储库- EPEL .请注意,Red Hat不支持它.

*) Fourth, there is an additional popular repository for RHEL5 and RHEL6 distros - EPEL. Note that it's not supported by Red Hat.

希望我的回答会有所帮助.

Hope my answer(s) will help.

这篇关于检查RPM依赖性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆