Ask Your Question
1

How do I view RPM dependencies in F23?

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

xmetax gravatar image

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

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
4

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

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

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

Example : rpm -qpR http://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/updates/22/x86_64/g/gimp-2.8.14-3.fc22.x86_64.rpm

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

Example : dnf repoquery --requires gimp

edit flag offensive delete link more
2

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

Nicholas gravatar image

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

You could always use the rpm --test option.

rpm --help

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

Example:

rpm -i --test mypackage.rpm

rpm -iv --test "http://mirror.pnl.gov/fedora/linux/development/23/x86_64/os/Packages/0/0install-2.6.1-6.fc23.x86_64.rpm"
edit flag offensive delete link more
1

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

meridian gravatar image

updated 2015-11-12 11:46:46 -0500

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

rpm -qpR {.rpm-file}

or

rpm -qR {package}

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 2,813 times

Last updated: Nov 28 '16