Mailinglist Archive: opensuse-factory (824 mails)

< Previous Next >
Re: [opensuse-factory] How can I edit the rpmdb?
  • From: Sylvester Lykkehus <zly@xxxxxxxxxxxxxx>
  • Date: Mon, 24 Sep 2007 09:28:48 +0200
  • Message-id: <46F76730.3000300@xxxxxxxxxxxxxx>
Juan Erbes wrote:
2007/9/23, Patrick Shanahan <ptilopteri@xxxxxxxxx>:
* Juan Erbes <jerbes@xxxxxxxxx> [09-23-07 09:57]:
How can I edit the rpmdb to remove the references to all the packages
that are not installed. In the rpmdb appear as installed about 4
different versions from the same package.
man rpm
  search for rebuilddb

rpm --rebuilddb  [as root]



Yes, I make it many times a day, but it not resolves the problem. The
rebuilddb does not remove the references to the old packages do'nt
present in the system (upgraded many times).
For example now I has rebuilding the rpmdb, and it terminated with:

rpmdb: page 851: illegal page type or format
rpmdb: PANIC: Argumento inválido
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal
error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error,
run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->close: DB_RUNRECOVERY: Fatal
error, run database recovery


Thanks


Stumbled upon http://www.internetguru.com.au/igblog-127.html , an old blog post which in turn links to http://www.rpm.org/hintskinks/repairdb/

Both might be of interest

Best regards
Sylvester Lykkehus

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups