I have a slow internet connection and two manjaro computers, call them A and B.
I use A as a simple local server for installation files. A and B do not have identical sets of packages so sometimes packages are downloaded from remote server when B is updating (after A has updated and downloaded install packages over night).
But pacman on B stops using the local server after three (or so) files are missing from A and all other packages are downloaded from remote server. This is slow and a waste of internet bandwidth.
I can’t seem to find where pacman’s config file is to change this default value. Can this be changed to a higher number?
or copy A file cache(after update) in B file cache (before update) ?
# speudo bash script in B machine
mount (samba?)A in /mnt/cacheA/
cp /mnt/cacheA/var/cache/pacman/pkg/*.{sig,zst} /var/cache/pacman/pkg/ --update
checkupdates -d # so download files only if not in B cache
#TODO after update, paccache ...