rm and old rpms

JB jb.1234abcd at gmail.com
Mon Sep 20 18:34:36 UTC 2010


Todd Zullinger <tmz <at> 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  by their atime (access time), ...
...

You may have to be careful with that.

Keep in mind that the default mount option (/etc/fstab) is relatime, which
causes update to the atime only if the previous atime was older than the file's
mtime or ctime.

But tmpwatch wants to know if a file has been accessed at all in the last
"time" period. So it may pick up for deletion a file that actually was accessed,
but whose atime does not reflect it.

I hope I am correct in this reasoning :-)

JB





More information about the users mailing list