How do I increase the number of parallel package downloads when using yay?

I tried to search for this but failed (english is not my first language)

How can I set the number of packages downloaded in parallel when using yay? I noticed they’re automatically set to more than 1 in a new install on one of my computers so I would like to increase it on my older ones also.

/etc/pacman.conf > #ParallelDownloads = 5
Remove the hash if necessary and adjust to your convenience

gitlab.manjaro.org/packages/core/pacman/-/blob/master/pacman.conf

# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.


# Misc options

ParallelDownloads = 5

$ man pacman.conf

     ParallelDownloads = ...
         Specifies  number of concurrent download streams. The value needs to be a positive integer. If this config op‐
         tion is not set then only one download stream is used (i.e. downloads happen sequentially).

Parallel downloads - pacman - ArchWiki

The /etc/pacman.conf shipped with the pacman package sets it to 5

To make it completely clear: yay is an aur helper but also a pacman wrapper, so the pacman config as shown above should apply there too, at least for the repo packages. Not sure if it applies to the aur - i think not.

Edit: i just checked - seems it also applies to the AUR.

The OP wasn’t clear about it

There was no such line so I had to insert it manually. (perhaps due to old age, this system was installed in july 2019)

Mine was installed late April 2019, but I do have such a line. And that’s because I merge my .pacnew files. :stuck_out_tongue:

You might have a whole load of them on your system by now. Check whether this is the case… :backhand_index_pointing_down:

pacdiff -o

Note: /usr/bin/pacdiff is owned by pacman-contrib. You may need to install that package first.

ParallelDownloads was first included in pacman 6.0 released 2021
Commit 71973c86 - [pkg-upd] 6.0.0-1- pacman.conf