You are not logged in.
is it safe to move the pacman cache from /var/cache/pacman/pkg/ to, say, /tmp/pacman-pkg ? by safe, i mean in the sense that pacman won't complain that the folder is missing after a fresh reboot. i know that means ALL package cache is lost at reboot, but i am personally ok with that. i just don't know if pacman will freak out or automatically create the folder if its missing by default.
why? i have 64gb of ram and in the past years i might have downgraded a package twice. save writes on my nvme's, faster unarchiving, and save space on my nvmes. i've been moving a lot of unnecessarily things to /tmp for that sweet ~91gb/s tmpfs.
Last edited by orlfman (2024-10-22 06:11:17)
Offline
As long as the download size fits in tmpfs size, I think you'll be all right.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Check pacman.conf option CacheDir or --cachedir in pacman man page. It is also talked about in the archwiki, Package cache directory.
Offline
As long as the download size fits in tmpfs size, I think you'll be all right.
yup! i just tested and pacman indeed will create the folder, /tmp/pacman-pkg, if it doesn't exist already.
Offline
Thank you for asking the question orlfman. Seems like a sweet tip.
Arch Linux with Openbox & Tint2
Offline