Bug 1203705 - "dnf provides" doesn't work on all files
Summary: "dnf provides" doesn't work on all files
Keywords:
Status: CLOSED DUPLICATE of bug 982664
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-19 13:50 UTC by Christian Stadelmann
Modified: 2015-03-24 11:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 14:39:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Christian Stadelmann 2015-03-19 13:50:08 UTC
Description of problem:
running 
$ dnf provides /usr/lib/kbd/keymaps/xkb
(or any other file below /usr/lib/kbd/) doesn't give the package providing this file.

running
$ rpm -qf /usr/lib/kbd/keymaps/xkb
works fine and gives 
kbd-misc-2.0.2-3.fc21.noarch

Version-Release number of selected component (if applicable):
dnf 0:0.6.4-1.fc21

Comment 1 Radek Holy 2015-03-19 14:39:07 UTC
Hello, please note that there is no package that explicitly provides /usr/lib/kbd/keymaps/xkb. "kbd-misc-0:2.0.2-3.fc21.noarch" explicitly only provides "/lib/kbd/keymaps/xkb". See also http://dnf.readthedocs.org/en/latest/cli_vs_yum.html#dnf-provides-bin-file-does-not-find-any-packages-on-fedora.

*** This bug has been marked as a duplicate of bug 982664 ***

Comment 2 Christian Stadelmann 2015-03-20 14:26:33 UTC
Ok, while
$ dnf provides /usr/lib/kbd/keymaps/xkb
doesn't work, 
$ dnf provides /lib/kbd/keymaps/xkb
does. Just in case anyone runs into the same problem.

And if I understand this correct on the long run kbd-misc should generate files to install in /usr/lib/kbd/… instead of /lib/kbd/…, am I right?

Comment 3 Radek Holy 2015-03-24 11:04:13 UTC
Christian, please take a look at https://fedoraproject.org/wiki/Packaging:Guidelines#Effect_of_the_UsrMove_Fedora_Feature .


Note You need to log in before you can comment on or make changes to this bug.