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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/