0

I need to can configure the APT "/var/cache/apt/archives" Cache.

Example:

  1. Set "Maximum Folder Cache Size"
  2. Get/Set "How much time, have to be passed, to remove an older version of a DEB file"."

1 Answer 1

0

After some researches I found the solution:

to change the APT Cache Settings create a new file like /etc/apt/apt.conf.d/99_new_file, with a content similar the following one:

APT::Archives::MaxAge "0";
APT::Archives::MinAge "0";
APT::Archives::MaxSize "2000";

and to get a specific value use a command like this:

apt-config dump | grep 'APT::Archives::MaxAge' | cut -d'"' -f2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .