Description of problem: Subcommand "provides" fails to find some files by filename. For example, "yum provides CoreP.h" can't find /usr/include/X11/CoreP.h. But "yum provides /usr/include/X11/CoreP.h" can find libXt-devel.i386. Version-Release number of selected component (if applicable): yum-2.4.1-1.fc4 sqlite-3.1.2-3 python-sqlite-1.1.6-1 How reproducible: always Steps to Reproduce: 1.do this command yum provides CoreP.h Actual results: Loading "installonlyn" plugin Searching Packages: Setting up repositories development [1/2] extras-development [2/2] Reading repository metadata in from local files Importing additional filelist information No Matches found Expected results: Loading "installonlyn" plugin Searching Packages: Setting up repositories development [1/2] extras-development [2/2] Reading repository metadata in from local files Importing additional filelist information libXt-devel.i386 1.0.0-2.2 development Matched from: /usr/include/X11/CoreP.h Additional info: Fdora Core 4's yum can find CoreP.h by filename.
It's been fixed in CVS for yum 2.5.X.
I'm seeing this in 2.6.0. It won't find it in the repo, but it will find it in installed packages. # yum provides checkmodule Loading "installonlyn" plugin Searching Packages: Setting up repositories core [1/3] extras [2/3] updates [3/3] Reading repository metadata in from local files Importing additional filelist information checkpolicy.i386 1.29.4-1 installed Matched from: /usr/bin/checkmodule /usr/share/man/man8/checkmodule.8.gz # rpm -q yum yum-2.6.0-1 Specifying the full path works: # yum provides /usr/bin/checkmodule Loading "installonlyn" plugin Searching Packages: Setting up repositories core [1/3] extras [2/3] updates [3/3] Reading repository metadata in from local files checkpolicy.i386 1.29.4-1 core Matched from: /usr/bin/checkmodule checkpolicy.i386 1.29.4-1 installed Matched from: /usr/bin/checkmodule
Just an fyi something similar is happening with a fully updated fc4 machine i have yum provides "bin/dict" fails to return any matched when dictd is not installed yum provides "bin/dict" returns matches if dictd is installed yum provides "bin/dict" Searching Packages: Setting up repositories Reading repository metadata in from local files dictd.i386 1.9.7-8 installed Matched from: /usr/bin/dict /usr/bin/dictdplugin-config /usr/bin/dictfmt /usr/bin/dictfmt_index2suffix /usr/bin/dictfmt_index2word /usr/bin/dictfmt_plugin /usr/bin/dictfmt_virtual /usr/bin/dictunformat /usr/bin/dictzip /usr/sbin/dictd
I can't recreate this problem anymore at all.
I see this problem too: [root@X ~]# yum provides xcomposite.pc Loading "installonlyn" plugin Searching Packages: Setting up repositories livna [1/5] updates [2/5] core [3/5] updates-testing [4/5] extras [5/5] Reading repository metadata in from local files Importing additional filelist information libXcomposite-devel.i386 0.2.2.2-2.2 installed Matched from: /usr/lib/pkgconfig/xcomposite.pc [root@X ~]# rpm -e libXcomposite-devel [root@X ~]# yum provides xcomposite.pc Loading "installonlyn" plugin Searching Packages: Setting up repositories livna [1/5] updates [2/5] core [3/5] updates-testing [4/5] extras [5/5] Reading repository metadata in from local files Importing additional filelist information No Matches found [root@X ~]# rpm -q yum yum-2.6.0-1 [root@X ~]#
okay here is the output from what will become yum 2.6.1: ./yummain.py provides xcomposite.pc Searching Packages: Setting up repositories updates-released [1/4] livna [2/4] base [3/4] extras [4/4] Reading repository metadata in from local files Importing additional filelist information xorg-x11-devel.i386 6.8.2-37.FC4.49.2 updates-released Matched from: /usr/lib/pkgconfig/xcomposite.pc xorg-x11-devel.i386 6.8.2-31 base Matched from: /usr/lib/pkgconfig/xcomposite.pc xorg-x11-devel.i386 6.8.2-37.FC4.49.2 installed Matched from: /usr/lib/pkgconfig/xcomposite.pc I think this is now fixed upstream.