Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Keith Christian
On Wed, Jun 17, 2009 at 4:34 AM, Fergus 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

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Christopher Faylor
On Wed, Jun 17, 2009 at 03:59:09PM -0400, Ralph Hempel wrote: >>>Christopher Faylor wrote: I think setup really should just delete the files when it is done with them if you choose "install from internet" >> >>"install from internet" != "install from local directory" > >Ah, now I understand

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Ralph Hempel
Christopher Faylor wrote: I think setup really should just delete the files when it is done with them if you choose "install from internet" "install from internet" != "install from local directory" Ah, now I understand why I was jumping to conclusions. Thanks for clearing that up. And contra

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Christopher Faylor
On Wed, Jun 17, 2009 at 11:30:38AM -0400, Ralph Hempel wrote: >Christopher Faylor wrote: >> On Wed, Jun 17, 2009 at 08:39:05AM -0400, Ralph Hempel wrote: >>>Whenever the next round of changes to setup happens, and the talk gets >>>around to "Removing the Download to Local Directory" or "Should we >

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Fergus
Are you paying attention? It can be cleaned up by: rm -rf "/h/my name/cygnus solutions/*" Yes, yes. I know. Your internet connection is only 1 byte per second so you desperately need to keep useless files around on disk for when you accidentally type rm -rf /bin. For Goodness sake. There reall

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Ralph Hempel
Christopher Faylor wrote: On Wed, Jun 17, 2009 at 08:39:05AM -0400, Ralph Hempel wrote: Whenever the next round of changes to setup happens, and the talk gets around to "Removing the Download to Local Directory" or "Should we Delete the Downloaded Files", please consider saying "No" to both pr

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Christopher Faylor
On Wed, Jun 17, 2009 at 11:34:24AM +0100, Fergus wrote: >Assume your local Cygwin repository is under some /pathname/ for example: >/g/users/yourname/cygfiles/setup.ini AND >/g/users/yourname/cygfiles/release/* >or you can have spaces if you like: >/h/my name/cygnus solutions/setup.ini AND /h/my n

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Christopher Faylor
On Wed, Jun 17, 2009 at 01:54:07PM +0100, Dave Korn wrote: >Christopher Faylor wrote: >>On Tue, Jun 16, 2009 at 06:16:17PM -0400, Ralph Hempel wrote: >>>Christopher Faylor wrote: > >>> >>> >>>Wouldn't it be nice if setup knew enough to remove the bz2 files for >>>packages that were no longer curren

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Christopher Faylor
On Wed, Jun 17, 2009 at 08:39:05AM -0400, Ralph Hempel wrote: >Christopher Faylor wrote: >>That's what I meant, yes. I think many people don't understand that >>those files don't need to be there and since we advocate using just the >>straight install from internet, we probably should be nice and

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Dave Korn
Christopher Faylor wrote: > On Tue, Jun 16, 2009 at 06:16:17PM -0400, Ralph Hempel wrote: >> Christopher Faylor wrote: >> >> >> Wouldn't it be nice if setup knew enough to remove the bz2 files for >> packages that were no longer current? >> >> > > No need to duck. I think setup really should j

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Ralph Hempel
Christopher Faylor wrote: That's what I meant, yes. I think many people don't understand that those files don't need to be there and since we advocate using just the straight install from internet, we probably should be nice and delete the files. Whenever the next round of changes to setup ha

Re: Is there a script to remove old packages from local disk

2009-06-17 Thread Fergus
Assume your local Cygwin repository is under some /pathname/ for example: /g/users/yourname/cygfiles/setup.ini AND /g/users/yourname/cygfiles/release/* or you can have spaces if you like: /h/my name/cygnus solutions/setup.ini AND /h/my name/cygnus solutions/release/* As setup.ini advances wit

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread David Arnstein
On Wed, Jun 17, 2009 at 12:50:34AM -0400, Christopher Faylor wrote: > That's what I meant, yes. I think many people don't understand that > those files don't need to be there and since we advocate using > just the straight install from internet, we probably should be nice > and delete the files.

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread Christopher Faylor
On Tue, Jun 16, 2009 at 11:01:15PM -0400, Ralph Hempel wrote: >Christopher Faylor wrote: >>>But those folders do fill up with old cruft after a while. >>But you wouldn't want to keep different versions of bz2 files around in >>that case. > >Right. But I do want to keep only the most current versio

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread Ralph Hempel
Christopher Faylor wrote: But those folders do fill up with old cruft after a while. But you wouldn't want to keep different versions of bz2 files around in that case. Right. But I do want to keep only the most current versions. Not to belabour the point, but if you do a "Download to local

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread Christopher Faylor
On Tue, Jun 16, 2009 at 06:16:17PM -0400, Ralph Hempel wrote: >Christopher Faylor wrote: >>You can just rm -r all of the directories that setup creates when >>installing packages. There is no reason to keep any of them around. > >I think he's talking about the old versions of the .bz2 files that l

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread Charles Wilson
There used to be a script by Michael Chase called "clean_setup.pl" but it has disappeared from the web. I have discovered a truly marvelous copy of it, which the margin of this email is too narrow to contain. Just kidding -- it's attached. I haven't used it in several years, so YMMV. -- Chuck c

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread Ralph Hempel
Christopher Faylor wrote: You can just rm -r all of the directories that setup creates when installing packages. There is no reason to keep any of them around. I think he's talking about the old versions of the .bz2 files that live in the local download folders. I may have a similar usage pa

Re: Is there a script to remove old packages from local disk

2009-06-16 Thread Christopher Faylor
On Tue, Jun 16, 2009 at 12:59:19PM -0600, Keith Christian wrote: >Has anyone written a script that will remove older .bz2 files in the >release/ directory on local drives, e.g. > > release/bash/bash-3.2.25-17.tar.bz2 > release/bash/bash-3.2.33-18.tar.bz2 > release/bash/bash-3.2.39

Is there a script to remove old packages from local disk

2009-06-16 Thread Keith Christian
Has anyone written a script that will remove older .bz2 files in the release/ directory on local drives, e.g. release/bash/bash-3.2.25-17.tar.bz2 release/bash/bash-3.2.33-18.tar.bz2 release/bash/bash-3.2.39-19.tar.bz2 release/bash/bash-3.2.39-20.tar.bz2 rele

Re: Old packages...

2003-09-09 Thread Jason Fu
Thank you, Max! It works perfectly with options: clean_setup.pl -DDir -DFile -prev -prevobs Thanks!! Jason > Jason Fu wrote: >> Sorry that I did not make it clear. What I mean is those source files > and > not >> the installed packages. >> >> Just wonder if there's any way being used by cygwin'

Re: Old packages...

2003-09-04 Thread Max Bowsher
Jason Fu wrote: > Sorry that I did not make it clear. What I mean is those source files and not > the installed packages. > > Just wonder if there's any way being used by cygwin'ers to handle a lot of > binary sources of different versions after downloading the latest one. clean_setup.pl at http:/

Re: Old packages...

2003-09-03 Thread Jason Fu
Sorry that I did not make it clear. What I mean is those source files and not the installed packages. Just wonder if there's any way being used by cygwin'ers to handle a lot of binary sources of different versions after downloading the latest one. Regards, Jason Fu > On Thu, Sep 04, 2003 at

Re: Old packages...

2003-09-03 Thread Christopher Faylor
On Thu, Sep 04, 2003 at 11:13:18AM +0800, Jason Fu wrote: >Hi there, > >I always keep my CYGWIN packages as "current" as possible. But this turns out >to be a lot of old files left behind/before for me to handle/delete. I really >wonder if there's any available tactics to handle old files and jus

Old packages...

2003-09-03 Thread Jason Fu
Hi there, I always keep my CYGWIN packages as "current" as possible. But this turns out to be a lot of old files left behind/before for me to handle/delete. I really wonder if there's any available tactics to handle old files and just keep the latest version. Thanks! Jason Fu http://www.hkuc