ALT Linux Bugzilla – #8534
rpmi -i --force results in package duplication in some cases
Last modified: 2012-01-02 19:23:48
You need to
before you can comment on or make changes to this bug.
The documentation states that --force is a shorthand for --replacefiles
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!
Created an attachment (id=1260) [details]
Output of rpmi -ivv --force --justdb pkg-config-0.20-alt2.pentium4.rpm
Are you talking about rpm >= 4.0.4-alt53?
I'm unable to reproduce this behavior.
BTW, changes in rpm-4.0.4-alt53 make --force option less needed than before,
because -U and -F options now take build dates into account.
4.0.4-alt53 it is.
(In reply to comment #0)
> The obvious workaround to it is: Don't do that!
I'd say WORKSFORME then.
tracked at https://bugs.launchpad.net/rpm/+bug/910871