yum db lossage

Wolfgang S. Rupprecht wolfgang+gnus200607 at dailyplanet.dontspam.wsrcc.com
Mon Jul 10 15:30:57 UTC 2006


Paul Howarth <paul at city-fan.org> writes:
> Wolfgang S. Rupprecht wrote:
>>> $ rpm -qi fedora-release
>>      [root at arbol ~]# rpm -qi fedora-release
>>      package fedora-release is not installed
>> How do I recreate that?
>
> # rpm -Uvh --replacefiles --replacepkgs \
> http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm

    [root at arbol ~]# rpm -Uvh --replacefiles --replacepkgs http://download.fedora.redhat.com/pub/fedora/linux/core/5/x86_64/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
    Retrieving http://download.fedora.redhat.com/pub/fedora/linux/core/5/x86_64/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
    error: Failed dependencies:
            /bin/sh is needed by fedora-release-5-5.noarch

After I threw in a "--nodeps" it seemed to be happy.


> How many packages does this list:
> $ rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"
>

    [root at arbol ~]# rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" | wc
        661     661   19001

I seem to be missing half of the installed rpms.  This machine's
fraternal twin has twice that number.  (While I might have missed
installing one or two packages on one or the other machine, this
difference is quite high).

    [root at ancho ~]# rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" | wc
    1138    1138   33205

Barring any other good ideas, I'm tempted for finish populating the
database from the extra entries on the other machine and running some
checking script to see if the RPMs were really installed.  Sigh.

-wolfgang
-- 
Wolfgang S. Rupprecht                http://www.wsrcc.com/wolfgang/




More information about the users mailing list