Bug 8534 - rpmi -i --force results in package duplication in some cases
: rpmi -i --force results in package duplication in some cases
Status: NEW
: Sisyphus
(All bugs in Sisyphus/rpm)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2005-11-21 14:28 by
Modified: 2012-01-02 19:23 (History)


Attachments
Output of rpmi -ivv --force --justdb pkg-config-0.20-alt2.pentium4.rpm (5.32 KB, text/plain)
2005-11-21 14:36, Mikhail Zabaluev
no flags Details


Note

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


Description From 2005-11-21 14:28:56
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!
------- Comment #1 From 2005-11-21 14:36:58 -------
Created an attachment (id=1260) [details]
Output of rpmi -ivv --force --justdb pkg-config-0.20-alt2.pentium4.rpm
------- Comment #2 From 2005-11-21 20:57:40 -------
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.
------- Comment #3 From 2005-11-22 00:10:05 -------
4.0.4-alt53 it is.
------- Comment #4 From 2009-08-15 14:23:07 -------
(In reply to comment #0)
> The obvious workaround to it is: Don't do that!
I'd say WORKSFORME then.
------- Comment #5 From 2012-01-02 19:23:48 -------
tracked at https://bugs.launchpad.net/rpm/+bug/910871