Skip to main content
Topic: [Feature Request] keep old package files for ~24hours after update. (Read 274 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Feature Request] keep old package files for ~24hours after update.

Ahoj,

I have the following suggestion regarding the repositories:

Whenever packages get updated, keep the old package files around for 24 hours.

I had it recently several times that during an update, the file vanished. Re-synced pacman -Sy, started update again, vanished again.

It was with the texlive- packages, where especially texlive-fontsextra has a really large download size of ~530MiB. On slow internet connections this is especially annoying, and creates a lot of unneeded extra traffic.

If the old files would stay around for 24hours, then downloads could succeed, even when there is some interruption they can be picked up where left over. New version would be pulled in in a regular update at some later time.

Regards!

Re: [Feature Request] keep old package files for ~24hours after update.

Reply #1
As a potential workaround given the existing situation, if you uncomment this line in /etc/pacman.conf:
Code: [Select]
ParallelDownloads = 5
it should reduce the chances of encountering that problem. By default the largest packages are downloaded first, but if there was any really big one then the others will most likely have downloaded before that one finishes. It depends how slow you mean though, if it actually takes you 24 hours to complete an update that is quite slow.

 

Re: [Feature Request] keep old package files for ~24hours after update.

Reply #2
If the old files would stay around for 24hours, then downloads could succeed, even when there is some interruption they can be picked up where left over. New version would be pulled in in a regular update at some later time.
Unfortunately, this is not how pacman works. The repositories only hold the latest version and you should use the archive for older ones.