Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install some updates while on a sketchy connection in Arch Linux. What is the best way to do that?

while ! pacman --noconfirm --needed --refresh --upgrade

took over 90 minutes to complete. Possibly this is because I used the strangely named --upgrade option which is for reinstalling packages rather than doing a package upgrade (--sysupgrade).

share|improve this question
Exactly what I was thinking – ntzrmtthihu777 Apr 17 '15 at 14:55
up vote 2 down vote accepted

This isn't pacman's default behaviour: if the package has been successfully downloaded (ie., is not considered corrupt either due to incomplete downloading or a failed hash sum), then pacman shouldn't download the same package again. If the package has been partially downloaded, pacman will resume downloading where it left off without you doing anything special.

You could also look at using a wrapper like Powerpill to assist with downloading over a flaky connection.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.