My DIY solution Re: Cygwin setup.exe: Clean historical setup packages

2009-12-01 Thread LiuYan 刘研
After I viewed setup.ini, I decide to write a little script to do this. Currently, it scans all the sub-directory of cygwin local package directory, and delete all the old files which not listed in setup.ini or setup-2.ini. Wish it can help someone like me. download it from nabble.com:

Re: My DIY solution Re: Cygwin setup.exe: Clean historical setup packages

2009-12-01 Thread Christopher Faylor
On Tue, Dec 01, 2009 at 04:31:48AM -0800, LiuYan ?? wrote: After I viewed setup.ini, I decide to write a little script to do this. Currently, it scans all the sub-directory of cygwin local package directory, and delete all the old files which not listed in setup.ini or setup-2.ini. You didn't

Re: My DIY solution Re: Cygwin setup.exe: Clean historical setup packages

2009-12-01 Thread LiuYan 刘研
Hi Christopher, I've figure out one reason in my first post: Our servers have NO internet connection, so I'd better to keep a local copy of install packages, so that I can upgrade cygwin on servers by choose Install from Local Directory setup type. There's another reason I don't want to talk

Re: My DIY solution Re: Cygwin setup.exe: Clean historical setup packages

2009-12-01 Thread Christopher Faylor
On Tue, Dec 01, 2009 at 07:15:43AM -0800, LiuYan ?? wrote: Hi Christopher, I've figure out one reason in my first post: Our servers have NO internet connection, so I'd better to keep a local copy of install packages, so that I can upgrade cygwin on servers by choose Install from Local

Update Re: My DIY solution Re: Cygwin setup.exe: Clean historical setup packages

2009-12-01 Thread LiuYan 刘研
update: added -p option, which will treat files listed in [prev] section of setup.ini as old. now, run ./cleanOldPackages_UTF8.sh -p -d will clean files listed in [prev] sectoin. download it from nabble.com: http://old.nabble.com/file/p26594254/cleanOldPackages_UTF8.sh cleanOldPackages_UTF8.sh