You are not logged in.

#1 2022-11-06 06:11:41

DinoNuggies
Member
Registered: 2022-11-06
Posts: 2

How to update all of my packages, but download one package at a time?

I have a very bad internet connection at my current location, because of that, I can't just let pacman run and update everything at night, because it'll keep failing due to one or more of the packages getting to less than a byte per second. What I'm wondering, is if I could run the update command in pacman, but instead of having the default 5 or so packages downloading at a time, just download one at a time.

Offline

#2 2022-11-06 06:27:20

VoDo
Member
From: Europe
Registered: 2020-06-04
Posts: 122

Re: How to update all of my packages, but download one package at a time?

open /etc/pacman.conf as sudo and check row 37 in my case

ParallelDownloads = 5


Archi3

Offline

#3 2022-11-06 16:24:29

DinoNuggies
Member
Registered: 2022-11-06
Posts: 2

Re: How to update all of my packages, but download one package at a time?

VoDo wrote:

open /etc/pacman.conf as sudo and check row 37 in my case

ParallelDownloads = 5

Thanks so much for the quick response, this method works as I imagined perfectly!

Offline

#4 2022-11-06 16:28:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: How to update all of my packages, but download one package at a time?

I doubt that it's parallel downloads that are actually the problem, but rather that (at least) one of your mirrors is poorly chosen.  If you set ParallelDownloads to 1 only the first mirror in your mirrorlist is used (assuming it works).

If I were you, I'd dig a little deeper to see if there are at least 2 or 3 good mirrors you can use.  If so, set ParallelDownloads to 2 or 3.

Also note that if this has to run overnight to do the downloads, you might be interested in using the -w flag for pacman so it only downloads everything.  Then in the morning, you can run the actual upgrade (which will be quick) so you can see any important message from pacman or answer any prompts.  Just note that running `pacman -Syuw` and failing to later run a `pacman -Su` before installing new packages could result in a partial upgrade.  There are ways to avoid this too by using checkupdates and related tools, but if it were me I'd keep it simple with `pacman -Syuw` (perhaps in a loop until it exits successfully or reaches some maximum loop count) overnight, then just remember to `pacman -Su` in the morning.

Last edited by Trilby (2022-11-06 16:47:24)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB