[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpmorg-list
Subject:    Re: duplicates
From:       Jim Knoble <jmknoble () pobox ! com>
Date:       2001-10-30 4:55:37
Message-ID: 20011029235537.C3914 () zax ! half ! pint-stowp ! cx
[Download RAW message or body]


Circa 2001-Oct-29 18:32:11 -0500 dixit Jeff Johnson:

: On Mon, Oct 29, 2001 at 01:23:05PM -0600, Mate Wierdl wrote:
: > I have
: > 
: > # rpm -q rpm
: > rpm-4.0.2-8
: > 
: > on
: > 
: > # cat /etc/redhat-release 
: > Red Hat Linux release 7.1 (Seawolf)
: > 
: > My problem is that up2date does not work because rpm claims that I
: > have several versions of 71 packages installed:
: > 
: > # rpm -qa|sort |sed 's/-[0-9]\..*//'|uniq -d|wc -l
: >      71
: > The really weird thing is that some packages are listed twice---with
: > the same version & release.
: > 
: > # rpm -qa|sort |uniq -D
: > XFree86-100dpi-fonts-4.0.3-5
: > XFree86-100dpi-fonts-4.0.3-5
: > XFree86-75dpi-fonts-4.0.3-5
: > XFree86-75dpi-fonts-4.0.3-5

  [...]

: > What can I do?
: 
: FWIW, you probably used -i rather than -U at some point, that's
: the usual cause of this (harmless) problem.

Depends on what you mean by "harmless".  As you can see, Mate's up2date
stopped working.  

: Remove all occurences, and reinstall a single instance of each package.
: 
: For example,
: 	rpm -e --allmatches XFree86-100dpi-fonts-4.0.3-5
: 	rpm -Uvh XFree86-100dpi-fonts-4.0.3-5.i386.rpm
: 
: Do "rpm -e --nodeps ..." if rpm whines about missing dependencies.

Mate, don't forget not to do 'rpm -e --allmatches rpm'.  Then you'll be
thoroughly hosed.  And remember to mount the media containing the RPM
packages *first*, in case you do 'rpm -e --allmatches mount' without
thinking.  Similarly, don't 'rpm -e --allmatches kernel' without
ensuring that all the driver modules are loaded which are necessary to
access the device your RPMs are stored on.

Seriously, Jeff, i've never understood why RPM persists in so easily
allowing such confusing, surprising, and difficult-to-reverse behavior.
RPM should either (a) never permit the surprising case of two instances
of a package installed on top of each other, or (b) at the very least
make it easy to remove one of them without having to remove all of
them.

-- 
jim knoble | jmknoble@pobox.com   | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic