find out the command is from which packages using rpm

August 5th, 2006 mysurface Posted in Admin, backquote, rpm | Hits: 22319 | 2 Comments »

rpm is a common package manager for red hat, fedora, centos distro, to find out the command is from which package, you can using rpm -qf, let say you wanna find out “host” is from which package.

rpm -qf `which host`

#output:

bind-utils-9.3.2-20.FC5

Take care of the symbol (`) , it is not single quote. For normal keyboard, it is at on top of the tab button. It use to pass a result from one command to another as parameter.
The command line is equivalent to

rpm -qf /usr/bin/host

[中文翻译]

2 Responses to “find out the command is from which packages using rpm”

  1. ` is called back quote.

  2. great! what’s a useful backquote!

Leave a Reply