Cleaning older versions of patches out of cache

Bernd Felsche <[email protected]> Sun, 2 May 2004 01:08:51 +0800
Newsgroups gmane.linux.suse.fou4s.devel
Organization Innovative Reckoning
Message-ID <[email protected]>
I've been running fou4s for a while now and its cache has grown
very large!

First, I did a 
	fou4s --cleancache
which didn't help much.

So I got desperate and did:
	# cd /var/cache/fou4s/packages/mirror.aarnet.edu.au/i386/update/8.0
	# rm patches/*
	# fou4s -u
	# for r in */*.rpm ; do
	> egrep "^InstPath: $r\$" patches/* || rm $r
	> done
	#

Quick and dirty hack; I know. I really should have sorted through
the files in patches/* and worked out the version numbering...

Well; I've got 300MB of disc space back now.

Maybe somebody can integrate the hack ... or just keep it quiet ;-)

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!


--