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?

link|improve this question

64% accept rate
feedback

1 Answer

up vote 5 down vote accepted

yum doesn't have that capability. Use repoquery instead.

repoquery --requires <package>
link|improve this answer
How would I do the same if I have a local rpm file? – Usman Ismail Apr 23 at 15:38
feedback

Your Answer

 
or
required, but never shown

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