RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 803735 - Cannot install obsoleted package with --force
Summary: Cannot install obsoleted package with --force
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-15 14:29 UTC by Miroslav Vadkerti
Modified: 2012-03-16 09:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-16 04:46:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
obsoleted rpm (1.32 KB, application/octet-stream)
2012-03-15 14:39 UTC, Miroslav Vadkerti
no flags Details
obsoletes rpm (1.39 KB, application/x-rpm)
2012-03-15 14:39 UTC, Miroslav Vadkerti
no flags Details

Description Miroslav Vadkerti 2012-03-15 14:29:50 UTC
Description of problem:
I have two package, where one obsoletes the other one:
test-obsoleted-0.1-1.x86_64.rpm
test-obsoletes-0.1-1.x86_64.rpm

Everything seems to work nicely until I'm in need to install the obsoleted packages if I have also the obsoletes package installed:

# rpm -ivh test-obsoleted-0.1-1.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:test-obsoleted         ########################################### [100%]
# rpm -Uvh test-obsoletes-0.1-1.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:test-obsoletes         ########################################### [100%]
# rpm -Uvh test-obsoleted-0.1-1.x86_64.rpm 
error: Failed dependencies:
	test-obsoleted is obsoleted by (installed) test-obsoletes-0.1-1.x86_64
# rpm --force -Uvh test-obsoleted-0.1-1.x86_64.rpm 
error: Failed dependencies:
	test-obsoleted is obsoleted by (installed) test-obsoletes-0.1-1.x86_64
# rpm --force -ivh test-obsoleted-0.1-1.x86_64.rpm 
error: Failed dependencies:
	test-obsoleted is obsoleted by (installed) test-obsoletes-0.1-1.x86_64

As you can see I'm unable to install the obsoleted package even with --force.
This is a behavior change from RHEL6, where this was possible (but even without --force what might be a bug IMHO)

Version-Release number of selected component (if applicable):
rpm-4.9.1.2-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. See description and use the attached rpms
  
Actual results:
Cannot install obsoleted packages with --force

Expected results:
IMHO Can install obsoleted packages with --force

Additional info:
Please note the behavior change from RHEL6

Comment 2 Miroslav Vadkerti 2012-03-15 14:39:34 UTC
Created attachment 570312 [details]
obsoleted rpm

Comment 3 Miroslav Vadkerti 2012-03-15 14:39:57 UTC
Created attachment 570313 [details]
obsoletes rpm

Comment 4 Panu Matilainen 2012-03-16 04:46:51 UTC
Consider this a new feature in rpm 4.9.x: the change of behavior is intentional but it's not something that is going to be backported to older releases.

--force is the wrong switch here, it does not help with dependency issues, only other things such as file conflicts. You need to use --nodeps to override the new obsoletes behavior. Not a bug, this one.


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