delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/17/17:44:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4A38C6B0.5020700@bonhard.uklinux.net>
References: <4A38C6B0 DOT 5020700 AT bonhard DOT uklinux DOT net>
Date: Wed, 17 Jun 2009 15:43:45 -0600
Message-ID: <80152cdc0906171443q45dea46cs357736af3b88f1d5@mail.gmail.com>
Subject: Re: Is there a script to remove old packages from local disk
From: Keith Christian <keith1christian AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Wed, Jun 17, 2009 at 4:34 AM, Fergus<fergus AT bonhard DOT uklinux DOT net> wrote:
> #! /bin/sh
> # =A0clean
> cat "$1setup.ini" | sed -n '/release\//p' | sed 's/^.*release\///g' |\

I used Fergus' script referenced above, with the "safety feature" of
executing "setup.4" independently, as the search and destroy
mechanism.  I like this approach, try before you, er, um, "buy."

I saved the script in the "release/" directory and invoked thusly:

bash ./clean_cygwin.sh

Worked like a champ.  Anyone fearing that changes to setup.exe might
be asked for, forget it.  (-:  (-:

My "release/" directory was trimmed by 301mb, from 1000mb to 699mb!
That's well worth it.

Thanks, Fergus.


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DKeith

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