[Mageia-dev] Broken database problem

Thomas Backlund tmb at mageia.org
Wed Apr 18 18:58:55 CEST 2012


18.04.2012 19:49, Anne Wilson skrev:
> On 18/04/12 17:41, Thomas Backlund wrote:
>> 15.04.2012 16:16, Anne Wilson skrev:
>>> In desperation I tried "rm -fR /var/lib/rpm/*" - I hope I
>>> haven't broken anything too drastic, but nothing seems to have
>>> changed.  The database will still not rebuild.
>>>
> 
>> This part you should _never_ do...
> 
>> You wiped _all_ of rpms databases and any tracking of what is
>> installed or not.
> 
> OK, apologies.  Doesn't rebuilding the database replace that?
> 

Nope, as the info used to rebuild the database is also stored there :/


If you want to restore the database at this point you need to reinstall
all packages as listed in /var/log/rpmpkgs with --replacepkgs

or do a reinstall

--
Thomas


More information about the Mageia-dev mailing list