find out the command is from which packages using rpm

August 5th, 2006 mysurface Posted in Admin, backquote, rpm | Hits: 34075 | 3 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`



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


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

  1. ` is called back quote.

  2. great! what’s a useful backquote!

  3. Hi there I am so thrilled I found your website, I really found you by error, while
    I was looking on Google for something else, Regardless I am here
    now and would just like to say thank you for a tremendous post and a all round exciting blog (I also
    love the theme/design), I don’t have time to read through it all at the moment but I
    have bookmarked it and also added in your RSS feeds, so when I
    have time I will be back to read more, Please do keep up the superb job.

Leave a Reply