Bug 1768871

Summary: RFE: search in virtual provides
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: dnfAssignee: rpm-software-management
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Remi Collet 2019-11-05 12:45:42 UTC
This is one of the old yum/dnf strange behavior

When "foo" is a virtual provides

dnf install foo => works
dnf search foo => don't find anything


Use case, all PHP extensions are virtual provides, and thus are not found

ex:
# dnf search php-curl
Last metadata expiration check: 0:21:46 ago on Tue Nov  5 13:22:15 2019.
No matches found.

# dnf install php-curl
Package php-common-7.2.24-1.fc29.x86_64 is already installed.


Such question raise very often on various support channel.