Bug 82648

Summary: unexpected results of rpm -q --redhatprovides
Product: [Retired] Red Hat Linux Reporter: Tobias Meier <tobias.meier>
Component: rpmdb-redhatAssignee: Tim Powers <timp>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-24 15:11:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tobias Meier 2003-01-24 13:49:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207
Phoenix/0.5

Description of problem:
hi,

root.mediaways.net:~ # rpm -qa | grep net-tools
net-tools-1.60-3

root.mediaways.net:~ # rpm -q --redhatprovides ifconfig
no package provides ifconfig

root.mediaways.net:~ # rpm -ql net-tools
/bin/dnsdomainname
/bin/domainname
/bin/hostname
/bin/netstat
/bin/nisdomainname
/bin/ypdomainname
/sbin/arp
/sbin/ether-wake
/sbin/ifconfig
/sbin/ipmaddr
/sbin/iptunnel
/sbin/mii-tool
/sbin/nameif
/sbin/plipconfig
/sbin/route
/sbin/slattach
[...]

this happens with varios packages. some querys gives us the correct result:

root.mediaways.net:~ # rpm -q --redhatprovides iptraf
iptraf-2.4.0-5







Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.see description
2.
3.
    

Additional info:

Comment 1 Tim Powers 2003-01-24 15:11:27 UTC
To see what provides a file you need to provide the path, ie.:  rpm -q --redhatprovides /sbin/ifconfigThe reason you are seeing some work and some not with the way you are doing it is because some files have the same name as the package name, so this:  rpm -q --redhatprovides iptrafIs going to return "iptraf" since the package provides and requires its own package name. Make sense?Tim