Ask Your Question

How do I view RPM dependencies in F23?

asked 2015-11-12 10:53:34 -0600

xmetax gravatar image

updated 2015-11-12 10:54:59 -0600

Hi all,

I would like to know which command(s) to use for viewing what dependencies a RPM package needs before installing it. Thanks in advance for the help.

I've tried:

rpm -R packagename.rpm but it didn't work.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2015-11-12 12:07:27 -0600

updated 2015-11-12 12:07:41 -0600

rpm -qpR < package.rpm > requires to have previously downloaded the package or at least provided the full link.

Example : rpm -qpR

The easiest way is to use dnf repoquery --requires < package >

Example : dnf repoquery --requires gimp

edit flag offensive delete link more

answered 2015-11-12 14:52:30 -0600

Nicholas gravatar image

updated 2016-11-28 12:27:29 -0600

You could always use the rpm --test option.

rpm --help

  --test                         don't install, but tell if it would work or not


rpm -i --test mypackage.rpm

rpm -iv --test ""
edit flag offensive delete link more

answered 2015-11-12 11:40:21 -0600

meridian gravatar image

updated 2015-11-12 11:46:46 -0600

Its a query command, so you need to use -q

rpm -qpR {.rpm-file}


rpm -qR {package}

So you what you need is rpm -qpR packagename.rpm

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-11-12 10:53:34 -0600

Seen: 2,821 times

Last updated: Nov 28 '16