Enable ParallelDownloads feature of pacman

Speeds up the package installation process, especially when downloading a lot of small packages.
This commit is contained in:
Kron4ek 2021-06-17 17:46:35 +05:00 committed by GitHub
parent e3329eb4e2
commit a8363f87b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,6 +154,9 @@ echo >> "${bootstrap}"/etc/pacman.conf
echo "[chaotic-aur]" >> "${bootstrap}"/etc/pacman.conf
echo "Include = /etc/pacman.d/chaotic-mirrorlist" >> "${bootstrap}"/etc/pacman.conf
# Enable ParallelDownloads feature of pacman
sed -i 's/#ParallelDownloads = 5/ParallelDownloads = 5/g' "${bootstrap}"/etc/pacman.conf
run_in_chroot pacman -Syu --noconfirm
# These packages are required for the self-update feature to work properly