this post was submitted on 15 Aug 2025
16 points (100.0% liked)

Arch Linux

9121 readers
3 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

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.

all 8 comments
sorted by: hot top controversial new old
[–] Gyroplast@pawb.social 8 points 1 month ago (1 children)

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.

[–] jroid8@lemmy.world 2 points 1 month ago

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.

[–] taaz@biglemmowski.win 3 points 1 month ago* (last edited 1 month ago) (1 children)

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) cache

[–] jroid8@lemmy.world 1 points 1 month ago (1 children)

Thank you. This is a better temporary solution.

[–] victorz@lemmy.world 2 points 1 month ago

You can also do pacman -Syuw to download only. -w = --downloadonly

[–] SSUPII@sopuli.xyz 1 points 1 month ago* (last edited 1 month ago) (1 children)

/etc/pacman.conf should have a voice where to put the cache files. Set it to a directory in your home

[–] jroid8@lemmy.world 4 points 1 month ago

I don't think changing CacheDir variable prevents this behavior, it would just create the download-xxxxxx folders in my newly selected cache directory