[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to install and upgrade packages offline due to dial-up connection?



On Friday, February 04, 2005 9:10 AM, Phillip Pi <ant@zimage.com> wrote:

[...]
> Bascially, I would like to take the list of packages that I need to
> download and their locations, download them at work to burn to a CD-RW
> and/or USB Flash drives/sticks (haven't tested to see if Flash
> drives/sticks work on that Debian box). I see *.dep files are
> download-
> able from http://www.debian.org/distrib/packages (unstable, stable,
> etc.). I do NOT want have to download each file one by one. I think
> there was about a hundred packages in apt-get upgrade list when I
> checked last night. Gah! :(

A quick and easy solution would be something along the lines of:

* apt-get upgrade -y --print-uris | cut -s -d\' -f2 > file [on the Debian
box]
* wget -i file [at work]
* Copy the files downloaded in the previous step to your removable media

and then /either/:

* Copy the files from the removable media to /var/cache/apt/archives/ on the
Debian box, and apt-get upgrade

or

* Create an empty directory named "partial" on the removable media, in the
directory containing the .deb files from step two
* Mount the removable media on the Debian box, and run apt-get
upgrade -oDir::Cache::Archives=/path/to/debs/on/removable/media

hth

Adam



Reply to: