SOLVED Re: rm and old rpms

Joachim Backes joachim.backes at rhrk.uni-kl.de
Mon Sep 20 07:37:24 UTC 2010


On 09/20/2010 09:29 AM, Frank Murphy wrote:
> On 20/09/10 02:15, Todd Zullinger wrote:
>>
>> I don't know what the end goal is, but you may have better luck using
>> repomanage to prune old packages, yet keep the last N versions.  If
>> you have a local repository you want to keep from growing, that's
>> often preferable to just removing old packages.
>>
> 
> Thanks, just looking at that now.
> May be the simpler way
> 
>>> Does this look ok?
>>> find /path/local.repo/*.rpm  -mtime +200 -exec rm {} \;
>>
>> I'm a fan of xargs and avoiding -exec when possible,
> 
> Havn't got as far as xargs in my learning curve yet.
> 
> 

 find /path/local.repo/*.rpm  -mtime +200|xargs rm

-- 
Joachim Backes <joachim.backes at rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6131 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100920/33763bd1/attachment.bin 


More information about the users mailing list