pkg
pkg copied to clipboard
pkg install stalls while /var/cache/pkg is missing
I've decided that I don't need persistent package cache on my laptop and replaced /var/cache/pkg
with a symlink to /tmp/pkg
. Because I'm creating it manually after a reboot, sometimes I forget, and while it's missing, pkg(8)
works otherwise fine, but doing pkg install
would cause pkg(8) process to eat 100% CPU time (of a single core) and wait indefinitely without giving any diagnostics. Once I mkdir /tmp/pkg
, it automagically resumes and DTRT.