Re: rm and old rpms

2010-09-22 Thread Tim
On Mon, 2010-09-20 at 18:34 +, JB wrote: > with regard to tmpwatch. > > $ man tmpwatch > ... >By default, tmpwatch dates files by their atime (access > time), ... > ... > > You may have to be careful with that. Yes. Just because you think yum hasn't access that file in a while,

Re: rm and old rpms

2010-09-20 Thread JB
Todd Zullinger pobox.com> writes: > ... > ... But for this particular usage, if I > wasn't using repomanage (or another rpm specific tool), I'd use > tmpwatch rather than roll my own solution with find. Hi, with regard to tmpwatch. $ man tmpwatch ... By default, tmpwatch dates files

Re: rm and old rpms

2010-09-20 Thread Matthew Miller
On Sun, Sep 19, 2010 at 09:15:32PM -0400, 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 [...] > new shell process for each file. But for this particular usage, if I > wasn't using

Re: SOLVED Re: rm and old rpms

2010-09-20 Thread Joachim Backes
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, tha

SOLVED Re: rm and old rpms

2010-09-20 Thread Frank Murphy
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 packag

Re: rm and old rpms

2010-09-19 Thread Todd Zullinger
Frank Murphy wrote: > 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. I don't know what the end goal is, but you may have better luck using repomanage to prune old packages, yet keep

Re: rm and old rpms

2010-09-19 Thread Alexander Dalloz
Am 19.09.2010 20:36, schrieb Frantisek Hanzlik: > find /path/local.repo -name '*.rpm' -mtime +200 -exec rm {} \; > > is OK; when there is many files to remove this maybe faster: find /path/local.repo -type f -name "*.rpm" -mtime +200 -exec rm {} \+ does not start a new process for each found it

Re: rm and old rpms

2010-09-19 Thread Frantisek Hanzlik
Frank Murphy wrote: > 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 {} \; > find /path/local.repo

rm and old rpms

2010-09-19 Thread Frank Murphy
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