Accident: deleted installed.db

Max Bowsher maxb@ukf.net
Sun Dec 7 20:32:00 GMT 2003


Robert Collins wrote:
> On Mon, 2003-12-08 at 04:37, fergus@bonhard.uklinux.net 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/



More information about the Cygwin mailing list