Bug 1088987

Summary: dnf upgrade *.rpm tries to install packages which are not installed at the moment
Product: [Fedora] Fedora Reporter: Petr Spacek <pspacek>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-18 08:12:54 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:
Embargoed:

Description Petr Spacek 2014-04-17 15:01:33 UTC
Version-Release number of selected component (if applicable):
dnf-0.4.19-1.fc20.noarch

How reproducible:
100 %

Steps to Reproduce:
1. Download set of RPM files to a directory. Some of packages has to be an upgrade to installed package and some others should not be installed packages.
# install few random packages
$ dnf install clang

# koji download-build will download a lot of packages, e.g. lldb-devel package which is not installed
$ koji download-build --arch=x86_64 llvm-3.4-6.fc20

2. Run
$ dnf upgrade *.rpm


Actual results:
DNF wants to install all packages in the directory.

Installing:
 lldb-devel
...

Expected results:
DNF behaves in the same was as yum:

Examining lldb-devel-3.4-6.fc20.x86_64.rpm: lldb-devel-3.4-6.fc20.x86_64
Package lldb-devel not installed, cannot update it. Run yum install to install it instead.

Comment 1 Radek Holy 2014-04-18 07:30:04 UTC
I was pretty sure there was a similar report so far, but I can't find it. Anyway, thank you for the report. We'll take a look.

Comment 2 Tim Lauridsen 2014-04-18 08:04:58 UTC
(In reply to Radek Holy from comment #1)
> I was pretty sure there was a similar report so far, but I can't find it.
> Anyway, thank you for the report. We'll take a look.

https://bugzilla.redhat.com/show_bug.cgi?id=1084181

Comment 3 Radek Holy 2014-04-18 08:12:54 UTC
Yes, that's it. Thank you, Tim.

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