Previously Martin Mitchell wrote:
> That does little to help people make a snapshot of their packages on a CD,
> for example. apt should be able to be configured to move downloaded packages
> into a local archive.

Are you trying to reinvent the -s option for apt-get with a simple command
to copy/hardlink/whatever the files elsewhere, and then restart apt-get
without the -s option? You can always divert apt and use the script below
instead.

Wichert.

#! /bin/sh

set -e

apt-get.real -s $@
for i in /var/cache/apt/archives/*.deb ; do
        ln $i /var/cache/apt/global/`basename $i`
done
apt-get.real $@

-- 
==============================================================================
This combination of bytes forms a message written to you by Wichert Akkerman.
E-Mail: [EMAIL PROTECTED]
WWW: http://www.wi.leidenuniv.nl/~wichert/

Attachment: pgpQbWwOwj94a.pgp
Description: PGP signature

Reply via email to