finding rpms
Hi all...
I am trying to find the required rpms for some binaries.. Code:
[vinay@TEG ~]$ rpm -q --whatrequires /bin/ls Code:
[vinay@TEG ~]$ rpm -q --whatrequires /sbin/ifconfig |
--whatrequires is the way around you are thinking. It is not that ifconfig does not require any package but it is that no package requires ifconfig.
|
Quote:
Then you mean Code:
[vinay@TEG ~]$ rpm -qf /sbin/ifconfig then when --whatrequires is exactly required...? Code:
[vinay@TEG ~]$ rpm -q --whatrequires /bin/ls |
From man page:
Quote:
|
@vinaytp: Based on your postings you will need to use both --whatprovides CAPABILITY and --whatrequires CAPABILITY - either to find out what package holds a certain tool and which other tools depend on that tool.
|
Quote:
Code:
whatrequires If u want to know the package name of the binary, use Code:
rpm -qf <binary> use (to search any rpm package is installed or not) Code:
rpm -qa | grep <package name> |
Quote:
Thanks for your inputs...But I hope we cannot mention package name with --whatrequires option This provides on which pkg ifconfig depends... Code:
rpm -q --whatprovides /sbin/ifconfig This tells redhat-lsb-3.1-19.fc8.i386 and jre-1.6.0_14-fcs.i586 requires /bin/ls capability installed Code:
[root@TEG vinay]# rpm -q --whatrequires /bin/ls |
Package here I meant ls or ifconfig that you were referring to. I should have meant binary.
The first: It says the capability of ifconfig is provided by net-tools. It means ifconfig needs net-tools package installed for proper functioning. While in the second example: The packages in the output of the command require ls for the proper functioning. |
Quote:
|
Also useful :
# yum provides */ls # yum provides */ifconfig ..... |
All times are GMT -5. The time now is 05:25 PM. |