Bug 1525164 - dnf installs .i686 package if .i686 package is already installed
Summary: dnf installs .i686 package if .i686 package is already installed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-12 17:06 UTC by Vitaly Lipatov
Modified: 2018-05-21 11:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 12:12:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vitaly Lipatov 2017-12-12 17:06:17 UTC
Description of problem:

dnf install package with the same arch as already installed.

dnf-2.5.1-1.fc26.noarch

How reproducible:


Steps to Reproduce:
1.
# rpm -e --allmatches gpm-devel   
# rpm -e --allmatches gpm-devel
error: package gpm-devel is not installed

2.
# dnf install gpm-devel.i686
Installed:
  gpm-devel.i686 1.20.7-10.fc26

3.
# dnf install gpm-devel
Package gpm-devel-1.20.7-10.fc26.i686 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!


Expected results:
# dnf install gpm-devel
Installed:
  gpm-devel.x86_64 1.20.7-10.fc26 


Additional info:

yum does correct resolution here.

Comment 1 Daniel Mach 2017-12-13 12:12:02 UTC
This is expected behavior.
It is also expected to be different to YUM.

Dependency resolver (libsolv) has the dependency ('gpm-devel') satisfied with an installed package ('gpm-devel.i686'). If a user wants something more specific, he needs to provide more details in the input, for example gpm-devel.x86_64.

Comment 2 Vitaly Lipatov 2017-12-13 12:22:06 UTC
Thanks you for the comment. I see.

As for me, it is broken design when libsolv depends on arch of already installed package.


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