[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#29382: apt: apt deletes packages after installation without any question



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: wakkerma@cs.leidenuniv.nl
WWW: http://www.wi.leidenuniv.nl/~wichert/

Attachment: pgpxJLCkjM9xQ.pgp
Description: PGP signature


Reply to: