[arch-general] pacman/libalpm/libfetch do not honor TMPDIR

clemens fischer ino-news at spotteswoode.dnsalias.org
Tue Nov 29 17:20:54 EST 2011


Tom Gundersen wrote:

> 2011/11/29 "Jérôme M. Berger" <jeberger at free.fr>:
>
>>        And if your machine only boots very rarely (because it runs
>> continuously or because you hibernate it instead of rebooting) then
>> your "temporary" folder is never cleaned up. The solution that makes
>> the most sense is to have /tmp on a disk and to use tmpwatch [1][2]
>> in a cron job to clean it up regularly.
>>
>>                Jerome
>>
>> [1] http://fedorahosted.org/tmpwatch/
>> [2] http://aur.archlinux.org/packages.php?ID=23510
> 
> You should also be able to use /usr/lib/initscripts/arch-tmpfiles,
> which is what we use at boot, and which should have a similar
> functionality to tmpwatch (if you are using systemd you'll get a
> similar functionality for free).

With tmpwatch one gets to choose files not accessed or modified for
a certain period, and it needs no config file.  Arch-tmpfiles, OTOH,
would require such a thing.

Then again, a simple "find <some-dirs> -atime +<time-spec> -exec /bin/rm
'{}' +" does about the same as tmpwatch.


clemens



More information about the arch-general mailing list