X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Uhh-oh, I used a non-standard directory for install
Date: Fri, 3 Nov 2006 12:29:43 -0000
Message-ID: <01ad01c6ff43$beae6630$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <003f01c6ff35$e5aede30$210110ac@TOSHIBASOBE>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 03 November 2006 10:51, Michael E. Burke wrote:

> So, is there a way to get a list of all the files to remove? 

  Yep.

> Has anyone
> written a shell script that wipes out cygwin files?

  Slight complication with using a shell script that wipes out cygwin files:
the shell /is/ a cygwin file.

> Is there an install log
> hidden somewhere with a list of files installed?

  Yep.  It's in /etc/setup/installed.db.  Here's a shell script to generate a
dos batch file to remove all your cygwin files.

#!/bin/bash
cut -f1 -d' ' < /etc/setup/installed.db | grep -v INSTALLED.DB \
| xargs cygcheck -l | xargs cygpath -w  | sed -e 's/^/del /g' \
> remove-all-cyg-files.bat


  This doesn't take care of the left-over directories.  Running the list
through dirname sort uniq xargs cygpath and sed 's/^/rd /g'
>another-batch-file.bat is left as an exercise for the reader.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

