Juan Erbes wrote:
2007/9/23, Patrick Shanahan <ptilopteri@gmail.com>:
* Juan Erbes <jerbes@gmail.com> [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@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org