find out the command is from which packages using rpm
0 votos
August 5th, 2006 mysurface Posted in Admin, backquote, rpm | Hits: 2694 |
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
[䏿–‡ç¿»è¯‘ï¼½
Live Chat!









August 7th, 2006 at 5:05 pm
` is called back quote.
September 11th, 2006 at 10:22 pm
great! what’s a useful backquote!