Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

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   
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:

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

Description of problem:
hi, # rpm -qa | grep net-tools
net-tools-1.60-3 # rpm -q --redhatprovides ifconfig
no package provides ifconfig # rpm -ql net-tools

this happens with varios packages. some querys gives us the correct result: # rpm -q --redhatprovides iptraf

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

How reproducible:

Steps to Reproduce:
1.see description

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