delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/07/14:59:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <000f01c3bcfc$95df3680$78d96f83@starfruit>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <fergus AT bonhard DOT uklinux DOT net>
Cc: <cygwin AT cygwin DOT com>
References: <000701c3bce8$ce566970$0b7b2852 AT leper> <1070826534 DOT 1112 DOT 13 DOT camel AT localhost>
Subject: Re: Accident: deleted installed.db
Date: Sun, 7 Dec 2003 19:59:10 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
X-Cam-AntiVirus: No virus found
X-Cam-SpamDetails: Not scanned
Note-from-DJ: This may be spam

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019