[svlug] about RPM

Vince Duperron duperron at charter.net
Sun Mar 18 13:41:07 PST 2001


Todd;

Neither rpm --initdb nor rpm --rebuilddb appear to do anything.

Transcript of session follows.

Vince

[vince at thingfish vince]# cd /var/lib/
[vince at thingfish lib]# mv rpm rpm.bak
[vince at thingfish lib]# rpm --initdb
failed to open /var/lib/rpm/packages.rpm: No such file or directory

dbiOpen: cannot open Packages index
[vince at thingfish lib]# rpm -qa
failed to open /var/lib/rpm/packages.rpm: No such file or directory

dbiOpen: cannot open Packages index
[vince at thingfish lib]# rm -rf rpm
[vince at thingfish lib]# mkdir rpm
[vince at thingfish lib]# cp rpm.bak/* rpm
[vince at thingfish lib]# rpm --initdb
[vince at thingfish lib]# rpm -qa
[vince at thingfish lib]# rpm --version
RPM version 4.0
[vince at thingfish lib]# diff /var/lib/rpm/Basenames /var/lib/rpm.bak/Basenames
[vince at thingfish lib]# diff /var/lib/rpm/Conflictname /var/lib/rpm.bak/Conflictname 
[vince at thingfish lib]# diff /var/lib/rpm/Name /var/lib/rpm.bak/Name
[vince at thingfish lib]# diff /var/lib/rpm/Packages /var/lib/rpm.bak/Packages
[vince at thingfish lib]# diff /var/lib/rpm/Providename /var/lib/rpm.bak/Providename
[vince at thingfish lib]# diff /var/lib/rpm/conflictsindex.rpm /var/lib/rpm.bak/conflictsindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/fileindex.rpm /var/lib/rpm.bak/fileindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/groupindex.rpm /var/lib/rpm.bak/groupindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/nameindex.rpm /var/lib/rpm.bak/nameindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/packages.rpm /var/lib/rpm.bak/packages.rpm
[vince at thingfish lib]# diff /var/lib/rpm/providesindex.rpm /var/lib/rpm.bak/providesindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/requiredby.rpm /var/lib/rpm.bak/requiredby.rpm
[vince at thingfish lib]# diff /var/lib/rpm/triggerindex.rpm /var/lib/rpm.bak/triggerindex.rpm
[vince at thingfish lib]# rpm --rebuilddb
[vince at thingfish lib]# rpm -qa
[vince at thingfish lib]# diff /var/lib/rpm/Basenames /var/lib/rpm.bak/Basenames
[vince at thingfish lib]# diff /var/lib/rpm/Conflictname /var/lib/rpm.bak/Conflictname
[vince at thingfish lib]# diff /var/lib/rpm/Name /var/lib/rpm.bak/Name
[vince at thingfish lib]# diff /var/lib/rpm/Packages /var/lib/rpm.bak/Packages
Binary files /var/lib/rpm/Packages and /var/lib/rpm.bak/Packages differ
[vince at thingfish lib]# diff /var/lib/rpm/Providename /var/lib/rpm.bak/Providename
[vince at thingfish lib]# diff /var/lib/rpm/conflictsindex.rpm /var/lib/rpm.bak/conflictsindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/fileindex.rpm /var/lib/rpm.bak/fileindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/groupindex.rpm /var/lib/rpm.bak/groupindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/nameindex.rpm /var/lib/rpm.bak/nameindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/packages.rpm /var/lib/rpm.bak/packages.rpm
[vince at thingfish lib]# diff /var/lib/rpm/providesindex.rpm /var/lib/rpm.bak/providesindex.rpm
[vince at thingfish lib]# diff /var/lib/rpm/requiredby.rpm /var/lib/rpm.bak/requiredby.rpm
[vince at thingfish lib]# diff /var/lib/rpm/triggerindex.rpm /var/lib/rpm.bak/triggerindex.rpm
[vince at thingfish lib]# uname -rav
Linux thingfish 2.2.18pre21 #1 Sun Mar 4 14:45:32 PST 2001 ppc unknown
> 
> I know you've already tried it, but when you do a rpm --rebuilddb what
> are the results?  No output?  rpm --initdb?  Nothing?  Backup those
> /var/lib/rpm files first.
> 
> Is this a brand spanking new install of RH 7.0?  Box set or downloaded
> iso?  Was it an internet server for a while?  Was it used unprotected on
> a cablemodem for a while?  What's 'ps -ax' show?  What's the history of
> this machine/install?
> -- 
> Blue skies...		Todd
> | Get a bigger hammer!   |  Two things prevent you from having    |
> | http://www.mrball.net  |  sex with women:  sunlight & sobriety  |
> | http://faq.mrball.net  |                          --Tom Leykis  |
> 
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/mailman/listinfo/svlug
> 





More information about the svlug mailing list