Is there a way to set the timeout which
pacman uses to establish connections to repository servers? My ISP (university) has blocked several Arch Linux (I use Manjaro)
AUR and a few
community servers. I want to reduce the timeout, so that 70% of the "download" ends faster, even though some packages are missing. I can get the remaining packages via a slow (trusted) proxy service.
Whenever I start an upgrade
pacman tries too hard to download all packages.
pacman tries all Arch mirror servers for each package, and this consumes too much time. I know that all these servers are going to timeout for the 30% "blocked" packages.
I don't want to maintain a list of packages that are going to be blocked (even though the list doesn't vary much). This is the behaviour I would like:
pacmanshould quickly download the 70% unblocked ones and then
upgradewould fail (because some packages are missing).
- After enabling the proxy, I'd re-run
pacman -Suand the
upgradewould get completed.
Specifically these are the errors shown by
pacman. I couldn't find any command-line switch for setting timeout.
error: failed retrieving "file" from "server" : Resolving timed out after 10520 milliseconds error: failed retrieving "file" from "server" : Recv failure: Connection reset by peer error: failed retrieving "file" from "server" : Could not resolve host: "server"
Or maybe I should setup some scripts to keep track of the packages that seemed to be blocked in the previous
upgrade, and defer their downloads in the end?
That still doesn't solve the original problem as there could be a "new blocked" package when I upgrade this time. Deffered downloads would also take an eternity because of the large timeouts.
pacman-mirrorslist is always up to date. It gets synced with every upgrade (anyways).