[H-GEN] apt-proxy without internet
Michael Anthon
michael at anthon.net
Fri Sep 19 06:30:11 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Jimi wrote:
> My idea is to keep all my debian systems at home up-to-date by allowing them to
> request packages from my laptop and when I am at uni I can download the
> packages. Then when I get home the debian boxes can make the request again
> (using apt-get update or apt-get upgrade) and it will act just like apt-proxy to
> download the packages.
Try "apt-get upgrade -y --print-uris > files.txt". You will need to do
some parsing of the files.txt to figure out what to do. In particular
take note of the warning in the man page that the destination file name
*may* be different to the pool file name.
--print-uris
Instead of fetching the files to install their URIs are
printed. Each URI will have the path, the destination
file name, the size and the expected md5 hash. Note that
the file name to write to will not always match the file
name on the remote site! This also works with the source
and update commands. When used with the update command
the MD5 and size are not included, and it is up to the
user to decompress any compressed files. Configuration
Item: APT::Get::Print-URIs.
Cheers,
Michael
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list