[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?



> [...]
> > 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

Adam, this works very well! :) I made a bash script to run that apt-get 
upgrade -y --print-uris | cut -s -d\' -f2 > aptgetlist.lst. I will use 
that list to import in GetRight on a Windows box at work. :)



Reply to: