Bug 1231572

Summary: dnf repoquery --duplicated report is different than package-cleanup --dupes
Product: [Fedora] Fedora Reporter: Peter Bieringer <pb>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 22CC: igeorgex, jsilhan, jzeleny, mluscon, mmraka, packaging-team-maint, pnemade, samuel.rakitnican, tla, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-1.1.4-1.fc23 dnf-1.1.4-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-30 23:24:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1243005    
Bug Blocks:    

Description Peter Bieringer 2015-06-14 20:41:58 UTC
Description of problem:
output of duplicate checks is different between yum and dnf

Version-Release number of selected component (if applicable):
dnf-1.0.0-1.fc22.noarch
yum-3.4.3-505.fc22.noarch


How reproducible:
always


Steps to Reproduce:
# LC_ALL=C package-cleanup --dupes

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Loaded plugins: fastestmirror, langpacks

(nothing more)


# LC_ALL=C dnf repoquery --duplicated
Last metadata expiration check performed 2:00:09 ago on Sun Jun 14 20:40:51 2015.
kernel-core-0:4.0.4-301.fc22.x86_64
kernel-core-0:4.0.4-303.fc22.x86_64
kernel-devel-0:4.0.4-301.fc22.x86_64
kernel-devel-0:4.0.4-303.fc22.x86_64
kernel-modules-0:4.0.4-301.fc22.x86_64
kernel-modules-0:4.0.4-303.fc22.x86_64
kernel-modules-extra-0:4.0.4-301.fc22.x86_64
kernel-modules-extra-0:4.0.4-303.fc22.x86_64

Actual results:
different output

Expected results:
similar output

Comment 1 Honza Silhan 2015-06-15 19:50:23 UTC
Thanks for the report. It shouldn't print installonly packages.

Comment 2 srakitnican 2015-07-31 15:32:39 UTC
Experiencing the same issue under F22.

$ rpm -q dnf
dnf-1.0.1-2.fc22.noarch

$ sudo dnf repoquery --duplicated
Last metadata expiration check performed 1:34:24 ago on Fri Jul 31 15:47:50 2015.
kernel-core-0:4.0.8-300.fc22.x86_64
kernel-core-0:4.1.2-200.fc22.x86_64
kernel-core-0:4.1.3-200.fc22.x86_64
kernel-debug-devel-0:4.0.8-300.fc22.x86_64
kernel-debug-devel-0:4.1.2-200.fc22.x86_64
kernel-debug-devel-0:4.1.3-200.fc22.x86_64
kernel-modules-0:4.0.8-300.fc22.x86_64
kernel-modules-0:4.1.2-200.fc22.x86_64
kernel-modules-0:4.1.3-200.fc22.x86_64

Comment 3 Fedora Update System 2015-11-16 19:07:03 UTC
dnf-plugins-core-0.1.14-1.fc23 dnf-1.1.4-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-fe6e8b885b

Comment 4 Fedora Update System 2015-11-18 16:26:52 UTC
dnf-1.1.4-1.fc22 dnf-plugins-core-0.1.14-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-6137119aff

Comment 5 Fedora Update System 2015-11-18 16:52:06 UTC
dnf-1.1.4-1.fc23, dnf-plugins-core-0.1.14-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update dnf dnf-plugins-core'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-fe6e8b885b

Comment 6 Peter Bieringer 2015-11-19 06:39:58 UTC
Looks like there is a conflict issue caused by additional dependencies:

# LC_ALL=C dnf --enablerepo=updates-testing update dnf dnf-plugins-core
Last metadata expiration check performed 0:00:56 ago on Thu Nov 19 06:57:53 2015.
Dependencies resolved.
======================================================================================================================================
 Package                                  Arch                   Version                        Repository                       Size
======================================================================================================================================
Upgrading:
 dnf                                      noarch                 1.1.4-1.fc23                   updates-testing                 265 k
 dnf-conf                                 noarch                 1.1.4-1.fc23                   updates-testing                  89 k
 dnf-plugins-core                         noarch                 0.1.14-1.fc23                  updates-testing                  36 k
 dnf-yum                                  noarch                 1.1.4-1.fc23                   updates-testing                  82 k
 python2-dnf                              noarch                 1.1.4-1.fc23                   updates-testing                 447 k
 python3-dnf                              noarch                 1.1.4-1.fc23                   updates-testing                 452 k
 python3-dnf-plugins-core                 noarch                 0.1.14-1.fc23                  updates-testing                  64 k

Transaction Summary
======================================================================================================================================
Upgrade  7 Packages

Total size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] dnf-1.1.4-1.fc23.noarch.rpm: Already downloaded                                                                                   
[SKIPPED] python3-dnf-1.1.4-1.fc23.noarch.rpm: Already downloaded                                                                           
[SKIPPED] dnf-conf-1.1.4-1.fc23.noarch.rpm: Already downloaded                                                                              
[SKIPPED] dnf-yum-1.1.4-1.fc23.noarch.rpm: Already downloaded                                                                               
[SKIPPED] python2-dnf-1.1.4-1.fc23.noarch.rpm: Already downloaded                                                                           
[SKIPPED] dnf-plugins-core-0.1.14-1.fc23.noarch.rpm: Already downloaded                                                                     
[SKIPPED] python3-dnf-plugins-core-0.1.14-1.fc23.noarch.rpm: Already downloaded                                                             
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache till the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
  file /usr/share/locale/ca/LC_MESSAGES/dnf-plugins-core.mo from install of python3-dnf-plugins-core-0.1.14-1.fc23.noarch conflicts with file from package python-dnf-plugins-core-0.1.13-1.fc23.noarch
  file /usr/share/locale/da/LC_MESSAGES/dnf-plugins-core.mo from install of python3-dnf-plugins-core-0.1.14-1.fc23.noarch conflicts with file from package python-dnf-plugins-core-0.1.13-1.fc23.noarch

Error Summary
-------------



Checks:

# rpm -ql python-dnf-plugins-core-0.1.13-1.fc23.noarch |grep locale
/usr/share/locale/ca/LC_MESSAGES/dnf-plugins-core.mo
/usr/share/locale/da/LC_MESSAGES/dnf-plugins-core.mo

# rpm -qlp python3-dnf-plugins-core-0.1.14-1.fc23.noarch.rpm | grep local
/usr/share/locale/ca/LC_MESSAGES/dnf-plugins-core.mo
/usr/share/locale/da/LC_MESSAGES/dnf-plugins-core.mo

Is there an "obsoletes" missing?

python3-dnf-plugins-core
 Obsoletes: python-dnf-plugins-core

Workaround:

# rpm -e python-dnf-plugins-core (able to do without dependencies...)


Then after update everything works fine:

# LC_ALL=C package-cleanup --dupes

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Loaded plugins: fastestmirror, langpacks

Comment 7 Fedora Update System 2015-11-19 09:52:08 UTC
dnf-1.1.4-1.fc23, dnf-plugins-core-0.1.14-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-11-19 14:51:45 UTC
dnf-1.1.4-1.fc22, dnf-plugins-core-0.1.14-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update dnf-plugins-core dnf'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-6137119aff

Comment 9 Fedora Update System 2015-11-30 23:23:49 UTC
dnf-1.1.4-1.fc22, dnf-plugins-core-0.1.14-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.