Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check RPM dependencies

When you are installing a program 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 and install them using dpkg.

Is there any alternative website for RPM packages? Specially for RHEL?

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

like image 851
SuB Avatar asked Sep 29 '13 11:09

SuB


People also ask

How do I find the dependencies of an rpm?

It is a powerful command line package management system for installing uninstalling, verifying, querying, and updating Linux computer software packages. However RPM has in build mechanism to tell you about dependencies. Just try to install package and it will give you list of dependencies.

How do I check RPM packages?

To view all the files of an installed rpm packages, use the -ql (query list) with rpm command.

Which rpm option checks for dependencies and problems before installing a package?

rpm -i (--install is equivalent) installs software that's been packaged into an RPM package file. It does this by: Performing dependency checks. Checking for conflicts.


1 Answers

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 

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

*) 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.

*) 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.

like image 82
Peter Lemenkov Avatar answered Sep 21 '22 05:09

Peter Lemenkov