Subject: Re: Accident: deleted installed.db
From: "Max Bowsher" <[email-masked]>
To: <[email-masked]>
Cc: <[email-masked]>
Date: Sun, 7 Dec 2003 19:59:10 -0000

Robert Collins wrote:
> On Mon, 2003-12-08 at 04:37, [email-masked] wrote:
>>  I really really don't want to have to start again ...
>> Thanks. Fergus
>
> Restore it from a backup.

Yeah, stupendously helpful answer, Robert! :-)

Anyway, Fergus, assuming /etc/setup/*.lst.gz are still intact, you could try
this:

cd /etc/setup
echo "INSTALLED.DB 2" > installed.db
ls *.lst.gz | sed -e 's/^\(.*\)\.lst\.gz$/\1 \1-0.tar.bz2 0/' >>
installed.db

Now run setup. It will see the installed version of each installed package
as "0", so it will want to reinstall every package - but, letting it do that
will be a lot quicker than reselecting all the packages manually.

Max.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/