app-admin/tmpwatch installs a nice cronjob which can take care of cleaning the old cruft in DISTDIR/PORTAGE_TMPDIR based on atime/mtime. I think it would be be preferrable to refer to something that is actually maintained in portage instead of relying on third-party scripts posted in forums.g.o. only. Reproducible: Always Steps to Reproduce:
Does app-admin/tmpwatch offer an easy way to allow removal of obsoleted versions of packages while preserving "current" file? What about stuff that got installed two weeks ago and unmerged two hours later? IMHO tmpwatch does another job as it isn't integrated with Portage. It is not aware of files which could be used if you have to rebuild some package (USE flags change, revision bump,...) Feel free to reopen.