This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Accident: deleted installed.db


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]