Re: how to upgrade a debian system not connected to network
On Mon, Jun 14, 2004 at 12:29:53PM +0530, J.S.Sahambi wrote:
>
> >But if for whatever reason it must remain unconnected, then you'll want
> >to get the .deb packages downloaded on PC-A for transfer to PC-B.
> >
> >apt-get has a -d option:
> >apt-get -d install [package] which downloads a .deb to
> >/var/cache/apt/archives/[package][version].deb
> >
> >So to upgrade everything on PC-B:
> >1. Get a list of packages (to upgrade) on B, to A.
>
> How to get the list of packages to be upgraded on B. Can
> /var/lib/apt/lists/* of PC-B be of any help?
>
> >2. apt-get clean on A to clear current package cache.
> >3. Feed the list into "apt-get -d install [...]".
> >4. Burn .deb packages from apt cache onto CDs.
> >5. Don't forget the repository list files.
> Any help on this wil be appriciated.
Last summer I did something similar to this by keeping the apt.conf and
a few control files on the usb stick. My office machine would download
the new packages (as a normal user) and then my home machine would use
the disk as a repository. There was no need to access the office
machine's local configuration files or control files so apt-get updating
on that machine worked as always.
It worked very well indeed - I will try and dig up the exact configs
that I used.
--
Jon Dowland
http://jon.dowland.name/
Reply to: