Quantcast
Channel: wanna-be-a-Debian-system-administrator
Viewing all articles
Browse latest Browse all 10

Upgrade Debian over slow Internet connection

$
0
0

It was a moderately cold fall evening when I finally decided to do upgrade to Squeeze on my home computer. I have a 2MB line at home, sharing it with two other users. Apt-get dist-upgrade announced two and half hours of downloading at full speed and as it was evening I didn’t want to cut off other users. I have an 1GB optical line straight from my office to one of Debian mirrors, so I’ve decide to do downloading at work.

After short googling I’ve came accross this comment and this manual. The steps below are a combination of both.

  1. At home I’ve run the following command:
    apt-get --print-uris -y dist-upgrade | grep "^'" | gawk '{ print $1 }' | sed "s/'//g" > packages.lst
  2. Sent myself the packages.lst to the office with fast connection and there run the command below in an empty folder on a portable device. You can use -P option to specify the destination folder.
    wget -i packages.lst
  3. Back at home I’ve run:
    apt-get -o dir::cache::archives="/folder/on/portable/disc/" dist-upgrade

Viewing all articles
Browse latest Browse all 10

Trending Articles