How to speed up updates?

Most times updating the system works just fine but sometimes it can be incredibly slow. Usually it’s a single package but today even just syncing the extra repo was showing a estimated time of 86(!) hours. Speed was down to 3 b/s or so and I’m sitting there watching the show and I’m constantly thinking “Why don’t you just switch to another mirror?”

So, how do I set yay/pacman up so it switches to another mirror immediately if the speed falls under a certain amount (let’s say 20 Mbit/s or so)?

  1. Rate mirrors, usually something like that should be fine:
    --protocol https --age 2 --sort rate --number 6 --latest 6

  2. So, how do I set yay/pacman up so it switches to another mirror immediately if the speed falls under a certain amount (let’s say 20 Mbit/s or so)?

    Outside of just keeping mirrors fresh - not sure it’s possible.

Hey keybreak!

Thx, but I really hope it’s possible. I mean, would it indeed stay on the same mirror for 86 hours just to sync a single repo? :rofl:

BTW: Is it always save to abandon the update process by closing terminal?

I believe so, you may need to delete lock file in case of error once you try running pacman again though :wink:

https://wiki.archlinux.org/title/Pacman#"Failed_to_commit_transaction_(conflicting_files)"_error

As a :clown_face: - i sure hope so! :rofl:

honka_memes-128px-2

1 Like

I guess it depends at what point in the update process.
While syncing the repos and downloading the packages should be fine I guess.

Once the actual upgrading has begun I am not sure it would be a good idea to abort the process.

1 Like

Yeah, sure. I was wording my question wrong. I meant during download, not while upgrading. Thx for clarifying!