Do *any* tools exist at all to help reconstruct an rpm database?  One of
my machines RPM databases got hosed in the upgrade from 6.0 to 6.1.  I
still have a directory with plenty of data:

signal@blackhole signal]$ ls -al /var/lib/rpm
total 6304
drwxr-xr-x   3 root     root         1024 Nov 23 17:02 .
drwxr-xr-x   9 root     root         1024 Nov 23 17:02 ..
-rw-r--r--   1 root     root        16384 Dec  9 09:37 conflictsindex.rpm
-rw-r--r--   1 root     root      1318912 Dec  9 09:37 fileindex.rpm
-rw-r--r--   1 root     root        16384 Dec  9 09:37 groupindex.rpm
-rw-r--r--   1 root     root        16384 Dec  9 09:37 nameindex.rpm
-rw-r--r--   1 root     root      5247176 Dec  9 09:36 packages.rpm
-rw-r--r--   1 root     root        28672 Dec  9 09:37 providesindex.rpm
drwxr-xr-x   2 root     root         1024 Mar 12  1999 rebuilddb.8
-rw-r--r--   1 root     root        36864 Dec  9 09:37 requiredby.rpm
-rw-r--r--   1 root     root        16384 Dec  9 09:37 triggerindex.rpm
[signal@blackhole signal]$ ls -al /usr/lib/rpm
total 618
drwxr-xr-x   2 root     root         1024 Nov 23 16:56 .
drwxr-xr-x  31 root     root         9216 Nov 23 16:56 ..
-rwxr-xr-x   1 root     root        31326 Sep 25 19:49 config.guess
-rwxr-xr-x   1 root     root        24212 Sep 25 19:49 config.sub
-rwxr-xr-x   1 root     root         2498 Sep 25 19:49 convertrpmrc.sh
-rwxr-xr-x   1 root     root         1364 Sep 25 19:49 find-lang.sh
-rwxr-xr-x   1 root     root          723 Sep 25 19:49 find-provides
-rwxr-xr-x   1 root     root         1205 Sep 25 19:49 find-requires
-rwxr-xr-x   1 root     root          941 Sep 25 19:49 freshen.sh
-rwxr-xr-x   1 root     root          794 Sep 25 19:49 getpo.sh
-rw-r--r--   1 root     root         8160 Sep 25 19:49 macros
-rwxr-xr-x   1 root     root          726 Sep 25 19:49 mkinstalldirs
-rwxr-xr-x   1 root     root         2557 Sep 25 19:49 perl.prov
-rwxr-xr-x   1 root     root         2808 Sep 25 19:49 perl.req
-rwxr-xr-x   1 root     root       258792 Sep 25 19:49 rpmgettext
-rw-r--r--   1 root     root         3305 Sep 25 19:49 rpmpopt
-rwxr-xr-x   1 root     root       258792 Sep 25 19:49 rpmputtext
-rw-r--r--   1 root     root         7853 Sep 25 19:49 rpmrc
-rwxr-xr-x   1 root     root         5937 Sep 25 19:49 vpkg-provides.sh

And running "strings" on these files reveals that their is indeed a good
bit of data in there.  The problem is, I have some sort of corrupt entry
that keeps giving me an error:

[signal@blackhole signal]$ rpm -qa
dhcpcd-1.3.17pl5-2
termcap-9.12.6-15
cdecl-2.5-9
fwhois-1.00-11
patch-2.5.3-1
bdflush-1.5-10
glib10-1.0.6-6
byacc-1.9-11
redhat-release-6.1-1
setuptool-1.2-3
ElectricFence-2.1-1
libpng-devel-1.0.3-4
gpm-devel-1.17.9-3
Data type 0 not supported


I get it when I try to remove things also:

[root@blackhole signal]# rpm -e lynx
Data type 0 not supported

My question is, what is going on here, I am assuming somehow the data
format got hosed, and if I could somehow "dump"t this data, edit out the
bad parts and rebuild it, that would be most helpfull.  Or if some sort of
repair utility exists.

[root@blackhole signal]# rpm --rebuilddb
Data type 0 not supported

Please someone tell me their is a way I can fix this!
 
-----------------------------------------------------
Brian Feeny (BF304)     [EMAIL PROTECTED]   
318-222-2638 x 109      http://www.shreve.net/~signal      
Network Administrator   ShreveNet Inc. (ASN 11881)            


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to