rpmi -i --force results in package duplication in some cases
Bug #910871 reported by
Jeff Johnson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
New
|
Undecided
|
Unassigned | ||
ALT Linux |
Confirmed
|
Medium
|
Bug Description
There are duplicate registrations when rpm -i instead of -U is used.
Changed in altlinux: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
To post a comment you must log in.
The documentation states that --force is a shorthand for --replacefiles
--replacepkgs --oldpackage.
However, installing a package over the same, but different package(1) with
--force leads to duplicate package entries in the rpm database.
(1) I got this result when a package had the same name, version, release, and
epoch, but differed in other fields, such as Provides. Installing a package over
itself doesn't have this effect.
The obvious workaround to it is: Don't do that!