Bug 1295059 - dnf info <pkg> does not recognize that particular package is not installed from any repository
dnf info <pkg> does not recognize that particular package is not installed fr...
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
22
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-01 09:24 EST by frantisek.reznicek
Modified: 2016-01-04 07:40 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-04 07:40:44 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description frantisek.reznicek 2016-01-01 09:24:31 EST
Description of problem:

dnf info <pkg> does not recognize that particular package is not installed from any repository.

Scenario:
 1] buggy xorg-x11-drv-nouveau forced me to recompile if from FC23
    last official FC22 is xorg-x11-drv-nouveau-1.0.11-2.fc22
    my one installed via rpm is xorg-x11-drv-nouveau-1.0.12-1.fc22.x86_64

 2] yum-deprecated info xorg-x11-drv-nouveau says 
    Repo        : installed
 3] dnf info xorg-x11-drv-nouveau says
    Repo        : @System

DNF is mimmicking generally very well yum behavior but here you can see that additional check is missing whether particular package version is available.

Saying it simply, dnf performs xorg-x11-drv-nouveau package check in all repos but does not perform check whether xorg-x11-drv-nouveau-1.0.12-1.fc22.x86_64 exists in a repo.

Version-Release number of selected component (if applicable):
# rpm -q dnf-yum yum dnf
dnf-yum-1.1.4-2.fc22.noarch
yum-3.4.3-505.fc22.noarch
dnf-1.1.4-2.fc22.noarch


How reproducible:
100%

Steps to Reproduce:
1. recompile a package (rpmbuild --rebuild https://kojipkgs.fedoraproject.org//packages/.../xorg-x11-drv-nouveau-1.0.12-1.fc23.src.rpm)
2. install that new package (rpm -Uvh xorg-x11-drv-nouveau-1.0.12-1.fc23.x86_64.rpm)
3. yum[-deprecated] info xorg-x11-drv-nouveau | grep Repo
4. dnf info xorg-x11-drv-nouveau | grep Repo

Actual results:
DNF info <pkg> does not recognize that particular package is installed manually witout any repo
Expected results:
DNF info <pkg> should be more compatible with yum info including Repo property value

Additional info:
[root@localhost xorg-x11-drv-nouveau]# rpmbuild --rebuild <url>
[root@localhost xorg-x11-drv-nouveau]# rpm -Uvh xorg-x11-drv-nouveau-1.0.12-1.fc22.x86_64.rpm xorg-x11-drv-nouveau-debuginfo-1.0.12-1.fc22.x86_64.rpm
[root@localhost xorg-x11-drv-nouveau]# dnf info xorg-x11-drv-nouveau
Last metadata expiration check performed 3:03:27 ago on Fri Jan  1 12:07:25 2016.
Installed Packages
Name        : xorg-x11-drv-nouveau
Arch        : x86_64
Epoch       : 1
Version     : 1.0.12
Release     : 1.fc22
Size        : 217 k
Repo        : @System
Summary     : Xorg X11 nouveau video driver for NVIDIA graphics chipsets
URL         : http://www.x.org
License     : MIT
Description : X.Org X11 nouveau video driver.

[root@localhost xorg-x11-drv-nouveau]# /usr/bin/yum-deprecated info xorg-x11-drv-nouveau
Yum command has been deprecated, use dnf instead.
See 'man dnf' and 'man yum2dnf' for more information.

Installed Packages
Name        : xorg-x11-drv-nouveau
Arch        : x86_64
Epoch       : 1
Version     : 1.0.12
Release     : 1.fc22
Size        : 217 k
Repo        : installed
Summary     : Xorg X11 nouveau video driver for NVIDIA graphics chipsets
URL         : http://www.x.org
License     : MIT
Description : X.Org X11 nouveau video driver.

[root@localhost xorg-x11-drv-nouveau]# dnf info xorg-x11-drv-nouveau | grep Repo
Repo        : @System
[root@localhost xorg-x11-drv-nouveau]# yum-deprecated info xorg-x11-drv-nouveau | grep Repo
Repo        : installed
Comment 1 Honza Silhan 2016-01-04 07:40:44 EST
There's a key "from repo" below "repo". I.e.:
...
Repo        : @System
From repo   : @commandline
...

This is shown when the package was installed from command line. When it's installed from repository, you will see the repository there instead.

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