Slow speed in `yay` compared to `pacman`?

So I have a fast mirror in my country which enables me to install/update at 8-12MB/s using pacman.
But when I try to install/update through yay, the speed becomes 100-300KB/s. (I use 16Mb/s package from my ISP)

I guess, since yay directly downloads from AUR, I don’t get the additional speed like pacman with mirror site.

is there any workarounds so that I can get more speed using yay?

I mainly installed google-chrome and visual-studio-code-bin using yay since they are not available in official Arch repositories. so every-time I do an upgrade, it takes huge time updating these two packages. For this, I usually don’t update my system too often.

btw, where do you guys install google chrome and vs code from?

I hope you don’t mind me moving this to what I think is a more appropriate category.

2 Likes

with aur, we don’t download package but data from application site. so each datas are downloaded from a different site (usually github)
And with aur, sometimes you have to add a compilation time that can be long.

2 Likes

I think this hits the nail on the head. Some sites don’t have much bandwidth available at any given time.

The AUR isn’t an actual repository for the software, so to speak, more a menu referencing a recipe with links to the actual software sources, wherever they may be located.

perhaps update your list of mirrors
sudo pacman-mirrors -c Germany
is what I use in my case

but:
yay pulls it’s data not from repos - but from various external sources

see the PKGBUILD files for the particular application

… the up to date mirror list won’t help you there - the bandwidth to those sources is just what it is …

no

4 Likes

I looked at the pkgbuild of chrome - its pulling it directly from google. If they do no have a cache server near you, or detected abuse somewhere in your region or isp…

2 Likes

absolutely not!

got it everyone. Thanks a lot for clearing it out.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.