Recently I noticed when updating that pacman doesn’t resume where I stopped it (a few minutes before) which is not nice since my internet is slow. After a lot of searching I found out every time I run pacman -Syu
it makes a new folder in /var/cache/pacman/pkg
named download-xxxxxx
where the x’s are randomized characters then it puts the downloaded .tar.zst files into that new folder ignoring the previous folder it created last time. My workaround was to move the contents of the previous download folder to it’s parent directory but what would be a permanent solution? I remember when this wasn’t the case so it must be a new “feature” I can hopefully disable.
I didn’t see any provisions in the code to change this behavior, and I could easily reproduce the issue by interrupting downloads half-way. And it truly sucks.
It looks like a possible regression while fixing a related issue, but I only had a very cursory look. Not passing blame, yet. :)
No issue or PR exists concerning this problem, yet. If you cannot be bothered to create one, I might do so myself this weekend.
Thank you for your time. I can open an issue myself if I didn’t find my answer here, I won’t pass the effort onto you.
I don’t have an answer either but there is also
checkupdates
from pacman-contrib pkg, it optionally allows you to pre-DL the updated packages into the (global package) cacheThank you. This is a better temporary solution.
You can also do
pacman -Syuw
to download only.-w
=--downloadonly
deleted by creator
/etc/pacman.conf should have a voice where to put the cache files. Set it to a directory in your home
I don’t think changing
CacheDir
variable prevents this behavior, it would just create the download-xxxxxx folders in my newly selected cache directory