How to quickly find out which rpm package provides a command on Fedora Linux?

How to quickly find out which rpm package provides a command on Fedora Linux?

asked Apr 10, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

As an example, we want to find out which package provides the ping command.

You can quickly find it out by rpm:

$ rpm -qf `which ping`

It will give

iputils-20121221-2.fc19.x86_64

Alternatively, you can use yum:

$ yum provides `which ping`

It will give you something like this:

iputils-20121221-2.fc19.x86_64 : Network monitoring tools including ping
Repo        : fedora
Matched from:
Filename    : /usr/bin/ping



iputils-20121221-2.fc19.x86_64 : Network monitoring tools including ping
Repo        : @koji-override-0/$releasever
Matched from:
Filename    : /usr/bin/ping
answered Apr 10, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...