Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
11-24-2009, 01:11 AM
#1
Member
Registered: Apr 2009
Location: Namma Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 702
Rep:
finding rpms
Hi all...
I am trying to find the required rpms for some binaries..
Code:
[vinay@TEG ~]$ rpm -q --whatrequires /bin/ls
redhat-lsb-3.1-19.fc8.i386
jre-1.6.0_14-fcs.i586
Code:
[vinay@TEG ~]$ rpm -q --whatrequires /sbin/ifconfig
no package requires /sbin/ifconfig
why ifconfig does not require any package ???!!!
11-24-2009, 01:18 AM
#2
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Lucid, Ubuntu Server 9.10/10.04, CentOS 5.5 Final
Posts: 4,331
Rep:
--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.
11-24-2009, 01:29 AM
#3
Member
Registered: Apr 2009
Location: Namma Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 702
Original Poster
Rep:
Quote:
Originally Posted by
linuxlover.chaitanya
--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.
Thanks linuxlover.chaitanya...
Then you mean
Code:
[vinay@TEG ~]$ rpm -qf /sbin/ifconfig
net-tools-1.60-87.fc9.i386
[vinay@TEG ~]$ rpm -qf /bin/ls
coreutils-6.10-18.fc9.i386
ifconfig requires net-tools-1.60-87.fc9.i386.rpm right....
then when --whatrequires is exactly required...?
Code:
[vinay@TEG ~]$ rpm -q --whatrequires /bin/ls
redhat-lsb-3.1-19.fc8.i386
jre-1.6.0_14-fcs.i586
Does this indicates redhat-lsb-3.1-19.fc8.i386 and jre-1.6.0_14-fcs.i586 requires coreutils-6.10-18.fc9.i386 installed....? I am confused please help me...
11-24-2009, 01:31 AM
#4
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Lucid, Ubuntu Server 9.10/10.04, CentOS 5.5 Final
Posts: 4,331
Rep:
From man page:
Quote:
--whatrequires CAPABILITY
Query all packages that requires CAPABILITY for proper function-
ing.
It will give the list of all the packages that are dependent on the package mentioned in the command for the proper functioning.
11-24-2009, 01:39 AM
#5
Member
Registered: Sep 2009
Posts: 110
Rep:
@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.
11-24-2009, 01:47 AM
#6
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,
Posts: 1,063
Rep:
Quote:
Originally Posted by
vinaytp
Hi all...
I am trying to find the required rpms for some binaries..
Code:
[vinay@TEG ~]$ rpm -q --whatrequires /bin/ls
redhat-lsb-3.1-19.fc8.i386
jre-1.6.0_14-fcs.i586
Code:
[vinay@TEG ~]$ rpm -q --whatrequires /sbin/ifconfig
no package requires /sbin/ifconfig
why ifconfig does not require any package ???!!!
Here
is required to check the dependencies of that package,
If u want to know the package name of the binary,
use
or
use (to search any rpm package is installed or not)
Code:
rpm -qa | grep <package name>
Last edited by divyashree; 11-24-2009 at 01:48 AM .
11-24-2009, 01:51 AM
#7
Member
Registered: Apr 2009
Location: Namma Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 702
Original Poster
Rep:
Quote:
Originally Posted by
linuxlover.chaitanya
package mentioned in the command for the proper functioning .
Dear All...
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
net-tools-1.60-87.fc9.i386
Also
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
redhat-lsb-3.1-19.fc8.i386
jre-1.6.0_14-fcs.i586
Hope I am correct...Please guide me if I am wrong....
Last edited by vinaytp; 11-24-2009 at 01:53 AM .
11-24-2009, 01:55 AM
#8
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Lucid, Ubuntu Server 9.10/10.04, CentOS 5.5 Final
Posts: 4,331
Rep:
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.
11-24-2009, 02:01 AM
#9
Member
Registered: Apr 2009
Location: Namma Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 702
Original Poster
Rep:
Quote:
Originally Posted by
linuxlover.chaitanya
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.
Finally I understood the Concept...Once again thanks to all....
11-24-2009, 06:41 AM
#10
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 8,581
Also useful :
# yum provides */ls
# yum provides */ifconfig
.....
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 09:43 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News