I notice that my /var/tmp folder has occupied by 9.3GB space on my Ubuntu 16.04.2. Particularly, there are a bunch of mkinitramfs_* folders taken most of the space in the tmp folder. I looked into them, and they seem to be the temporary files for linux kernels compiled recently and in the past. Can I delete them safely, or they are linked to other important files?
I have tried using tmpreaper app to automate the temporary file cleaning process on reboots. But I find I can only put both /tmp/ and /var/tmp/ folders together into the auto-clean settings and only set up one max file age to remove old files. This may make it hard to set up the max file age parameter TMPREAPER_TIME properly. If I set it too short (by default, 7 days), I might delete those recent kernel compiling files in mkinitramfs_* folders which might be useful. If I set it too long, I may end up with a lot of files in /tmp. I hope you can point out to me some references on the role of those mkinitramfs_* folders and how to use tmpreaper app or other tools to automatically delete old temporary files.
Thanks!