2007/9/24, Sylvester Lykkehus <[EMAIL PROTECTED]>: > Juan Erbes wrote: > > 2007/9/23, Patrick Shanahan <[EMAIL PROTECTED]>: > >> * Juan Erbes <[EMAIL PROTECTED]> [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 >
Thanks for the info. But it's not what I need, because any repair system not removes the references to old packages who causes the problem. They appear about 4 o 5 previous versions from the same package in the rpmdb, and I will cleanup it. Regards --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
