[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rebuliding dpkg database



Thorsten Manegold wrote:
> As someone already asked about problems with dpkg after dataloss...
> 
> Is there a way to rebuild the dpkg database if it gets corrupted?
> With rpm there was a way to rebuild if you had some data still 
> intact.

This is not necessary with debian, the database is a plain text file.
/var/lib/dpkg/status should contain a list of a lot of packages, including
those ytou have installed. If it seems to be truncated or corrupted, keep a
bakcup of it and try copying status.yesterday.0 over top of it.

-- 
see shy jo


Reply to: