Checking RPM Dependencies

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

Is there an alternative website for RPM packages? Especially for RHEL?

I know that I can get these package names in other ways, for example, when installing the RPM package using rpm -i , but it is not user friendly and requires access to running Linux.

+6
source share
3 answers

In fact, this is not one, but four different questions :).

*) First, you can quickly view downloaded dependencies / package requirements using the following commands:

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

*) Secondly, you can use the yum utility to automatically satisfy these (somewhat critical) dependencies (provided that all your repositories are configured correctly and all dependencies are available):

 $ sudo yum install mypackage.rpm 

*) Thirdly, there are several RPM search resources, some of which have already been proposed above. I would like to list one more, for reference only - pkgs.org .

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

Hope my answers help.

+11
source

To just list all the package dependencies on the command line, here is an example that builds on Peter’s answer:

 $ PKG="http://yum.postgresql.org/9.3/redhat/rhel-6.2-x86_64/pgdg-sl93-9.3-1.noarch.rpm" 

Using yum (recommended):

 $ yum -q deplist $PKG package: pgdg-sl93.noarch 9.3-1 dependency: sl-release Unsatisfied dependency dependency: /bin/sh provider: bash.x86_64 4.1.2-8.el6 dependency: config(pgdg-sl93) = 9.3-1 provider: pgdg-sl93.noarch 9.3-1 

-q above, of course, is optional and equivalent to --quiet .

Rpm use :

 $ rpm -qpR $PKG /bin/sh config(pgdg-sl93) = 9.3-1 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 sl-release 

-qpR above is equivalent to --query --package --requires .

+3
source

This site http://www.rpmfind.net/linux/RPM/ provides a search engine for rpm files. You can see the dependencies and description. He also classifies them for each distribution.

+1
source

Source: https://habr.com/ru/post/954882/


All Articles