On Sun 22 Sep 2019 at 16:29:54 (+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?
> 
> I am running a package installation inside docker:stable, and it fails
> in the middle, with no space left on device.

I think you need to break up the apt command into several of them,
with clean in between (if needed: apt might clean automatically;
IDK as I use apt-get).

Install the dependencies of dependencies first, then the dependencies,
then the packages *with* those dependencies, ie starting from the
bottom of the tree of dependencies.

> Otherwise, is there an option to increase the docker image before
> installing it?

Cheers,
David.

Reply via email to