Sample Header Ad - 728x90

will DNF [YUM] fail if /var/tmp is a tmpfs file system?

1 vote
1 answer
544 views
I was considering making /var/tmp a tmpfs mount, similar to *systemctl enable tmp.mount* in order to meet a security rule requesting /var/tmp be on a separate partition. I did not make that physical partition at linux install time. > The FHS (File hierarchy standard) states *The /var/tmp directory is made available for programs that require temporary files or directories that are preserved between system reboots. Therefore, data stored in /var/tmp is more persistent than data in /tmp.* Specifically, for RHEL 8.8 or later, can having /var/tmp as a tmpfs (where it will be cleared after every reboot), cause a **yum update** to fail? Is YUM [DNF] in RHEL 8 once of those *programs*? If so, under what conditions would some sort of failure occur with /var/tmp as tmpfs? And if so, is there a manner in which to run yum/dnf that can allow it to work with a tmpfs /var/tmp? I ask because I see various /var/tmp/yum-xxxx folders from time to time. reference posts: https://unix.stackexchange.com/questions/757679/tmp-and-var-tmp-as-tmpfs-and-volatility https://unix.stackexchange.com/questions/86297/what-can-go-wrong-if-var-tmp-is-on-a-temporary-filesystem
Asked by ron (8647 rep)
Oct 2, 2023, 03:11 PM
Last activity: Oct 2, 2023, 06:29 PM