Bug 1274899

Summary: UX: print warning that some package was obsoleted by another package during instalation
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
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: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
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: 2016-01-07 23:55:10 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 Neal Gompa 2015-10-23 19:26:10 UTC
Description of problem:
When installing a package that has been obsoleted by another one, DNF does not process those obsoletes to actually use the newer package for that name. Instead, it installs the original package. However, doing a "dnf update" afterwards will properly trigger the obsoletes and replace the package.

This issue is observable when trying to install dnf-system-upgrade plugin by doing "dnf install fedup". You get the old fedup instead of the new plugin. Running "dnf update" will trigger the replacement of the package.

Version-Release number of selected component (if applicable):
1.1.3-1.fc22

How reproducible:
Always

Steps to Reproduce:
1. sudo dnf install fedup

Actual results:
Installs fedup-0.9.2-1.fc22

Expected results:
Installs dnf-system-upgrade (which obsoletes and provides fedup)

Comment 1 Honza Silhan 2015-10-26 12:42:43 UTC
Everyone has the right to install the obsoleted package. DNF can print the warning that the package is obsoleted another package. Agree?

The reason why system-upgrade plugin is replacing fedup during the upgrade is that it provides higher version of fedup than fedup package version.

Comment 2 Neal Gompa 2015-10-26 14:16:23 UTC
I suppose so, but if system-upgrade plugin obsoletes AND provides fedup (as opposed to just obsoleting), then I would normally expect it to install the system-upgrade plugin if I run "dnf install fedup" because system-upgrade is a provider of fedup, right?

Comment 3 Neal Gompa 2016-01-07 23:55:10 UTC

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