This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to remove those previously downloaded packges?
I've write a script when Cygwin 1.7 is in beta phase, please see this mail on
old.nabble.com
http://old.nabble.com/Cygwin-setup.exe%3A-Clean-historical-setup-packages-ts26569064.html
Here's the updated version for Cygwin-1.7 and Cygwin-Legacy(1.5):
http://old.nabble.com/file/p28443671/cleanOldPackages_UTF8.sh
cleanOldPackages_UTF8.sh
It simply find setup.ini and setup-legacy.ini in sub-directories (mirror
directories) recursively, and strip out the file list from
setup.ini/setup-legacy.ini, and then find out local files which are not
existed in the file list, then delete it.
$ ./cleanOldPackages_UTF8.sh
##################################################################
æç Cygwin æåèå
Clean Old Install Packages of Cygwin
by LiuYan<lovetideïqq.com> 2010-01-25 12:01
##################################################################
Usage çæ:
./cleanOldPackages_UTF8.sh [-d] [-g][-l] [-p]
-d Delete file if it is old
åéææä
-g, -l Generate old file deletion script file
çæåéææäçæèèææä
-p Treat files listed in [prev] section of setup.ini as old
å setup.ini ä [prev] éåæååçæäåäææä
Wish it can help you.
hzgmaxwell wrote:
>
> hi community,
>
>
> Every time when I was installing a cygwin, I run the setup twice.
> The first time is to download only, then the second is to install from
> local directory.
>
> To doing like this is to keep the installed packages under a specified
> directory, then later on I can re-install from there if only I need to
> install cygwin again.
>
> Now the problem is that the installer -- I mean setup.exe keeps those
> previously downloaded packages. For example, under gcc\gcc-core, there are
> two files as gcc-core-3.4.4-3.tar.bz2 and gcc-core-3.4.4-999.tar.bz2,
> actually as we know, gcc-core-3.4.4-3.tar.bz2 is a previously downloaded
> version, I want it to be removed when a new version is downloaded.
>
> I had thought about writing a script to do the job, but I found it's not
> good idea, because it's not easy to find out all the old packages, it's
> subject to the naming convention.
>
> I wonder if the installer could provide a feature to remove those old
> packages. Thanks for any hint or if there is already this kind of feature.
>
>
>
> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
>
>
--
View this message in context: http://old.nabble.com/How-to-remove-those-previously-downloaded-packges--tp28443377p28443671.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple