This is the mail archive of the cygwin 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: Is there a script to remove old packages from local disk


On Wed, Jun 17, 2009 at 4:34 AM, Fergus<fergus@bonhard.uklinux.net> wrote:
> #! /bin/sh
> # ?clean
> 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.


===========Keith

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