[sclug] apt-get cache question

Simon Huggins huggie at earth.li
Tue Jul 5 18:47:42 UTC 2005


'ello Tim

On Thu, Jun 30, 2005 at 11:51:20PM +0100, Tim Sutton wrote:
> My Dad is visiting from South Africa, and I am sending back a copy of
> Kubuntu 5.04 with hie to upgrade his mdk 9.2 box to kubuntu. On my
> local box I have done numerous updates, in particular installing
> koffice and scribus. I'd like to send the debs with him for to install
> these updates after performing the initial kubuntu install. He is on a
> very slow dial up connection and so I was hoping to let him upgrade
> nicely with no need for internet connection. I know I can simply write
> a script to copy all stuff from /var/cache/apt/archives onto his pc.
> But is there a  more elegant way to do it? Also, how ca I give hiome
> the apt-get update results so that he really doesnt need a net
> connection?

If you copy all the packages into a directory you can then cd into the
directory you put them in and run:
dpkg-scanpackages . /dev/null >Packages
zcat Packages >Packages.gz

Then create an ISO and burn it or put it on whatever media you're going
to put it on for him to take back.

Then when he gets back he can add deb file:/mnt/cdrom/whereever ./ to
his /etc/apt/source.list and then apt-get update and apt-get -u
dist-upgrade and be happy.

Something along those lines anyway.  I can't remember if you need a
Release file but I think apt'll skip it.

Simon.

-- 
"And what do we burn apart from witches?"   "*More* witches!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.tmdg.co.uk/pipermail/sclug/attachments/20050705/6418f1fb/attachment.bin


More information about the Sclug mailing list