rm and old rpms

Frank Murphy frankly3d at gmail.com
Sun Sep 19 16:46:22 UTC 2010


Hi,

Looking for a method to remove old rpms from a local repo using mtime,
as *fcX cannot be used in this instance.

It will end up being run as a daily cron job.

Does this look ok?
find /path/local.repo/*.rpm  -mtime +200 -exec rm {} \;

-- 
Regards,

Frank Murphy
UTF_8 Encoded
Friend of Fedora


More information about the users mailing list