Re: Remove package file from cache as soon as it is installed
Hi.
On Sun, Sep 22, 2019 at 04:29:54PM +0100, André Rodier wrote:
> Hello,
>
> Is there a way, when using apt to install packages, to delete the
> package file from /var/cache as soon as it is installed?
/usr/share/doc/apt/NEWS.Debian.gz:
apt (1.2~exp1) experimental; urgency=medium
[ Automatic removal of debs after install ]
After packages are successfully installed by apt(8),
the corresponding .deb package files will be
removed from the /var/cache/apt/archives cache directory.
This can be changed by setting the apt configuration option
"Binary::apt::APT::Keep-Downloaded-Packages" to "true". E.g:
# echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
> /etc/apt/apt.conf.d/01keep-debs
Please note that the behavior of apt-get is unchanged. The
downloaded debs will be kept in the cache directory after they
are installed. To enable the behavior for other tools, you can set
"APT::Keep-Downloaded-Packages" to false.
In short, either you use "apt <do> <foo>", or "apt-get -o
Binary::apt::APT::Keep-Downloaded-Packages=false <do> <foo>".
Reco
Reply to: