Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
do
    :
done

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
    
@jasonwryan Can you post Powerpill as an answer? –  l0b0 Oct 17 '13 at 7:08

1 Answer 1

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

 
discard

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.