Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

apt-cache show <package> shows also it's dependencies.

yum info <package> does not show dependencies, but it obviously know them.

How to ask yum for dependencies of specified package?

share|improve this question

3 Answers 3

up vote 32 down vote accepted

yum doesn't have that capability. Use the repoquery tool from the yum-utils package instead.

repoquery --requires <package>

OR to also see which additional RPM packages are needed to satisfy the dependencies, use --resolve

repoquery --requires --resolve <package>
share|improve this answer
How would I do the same if I have a local rpm file? –  Usman Ismail Apr 23 '12 at 15:38
Maybe extract the control file from rpm package and look into it? –  Vi. Nov 26 '12 at 10:56
If you have it downloaded then you use rpm -qp --requires <package file>. –  Ignacio Vazquez-Abrams Nov 26 '12 at 12:27

use deplist command

yum deplist <package>

from yum's manual:

Produces a list of all dependencies and what packages provide those dependencies for the given packages.

share|improve this answer
Unfortunately, this will return a list of all possible providers of each dependency, which can end up returning many hundreds or thousands of lines, instead of a simple list of the names of dependent packages. –  deesto Aug 8 '13 at 20:00

If you have a local RPM, you can get a list of dependencies via:

rpm -qpR mediawiki-1.4rc1-4.i586.rpm
share|improve this answer
Works for URLs too. –  A-B-B Aug 27 '14 at 22:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.