<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font face="Helvetica, Arial, sans-serif">Many thanks for your
        answer!</font></p>
    <p><font face="Helvetica, Arial, sans-serif">I used</font></p>
    <p><font face="Helvetica, Arial, sans-serif">apt upgrade  or  apt
        install Package</font></p>
    <p><font face="Helvetica, Arial, sans-serif">In both cases, the
        "archives" directory was purged immediately.<br>
      </font></p>
    <p><font face="Helvetica, Arial, sans-serif">To keep the *.deb files
        permanently, one should probably add something like NumberName
        (as 10periodic) in /etc/apt/apt.conf.d</font></p>
    <p><font face="Helvetica, Arial, sans-serif">With Google, I was
        unable to find how to define new NumberName files and to get
        indications about the syntax. As I could see, this item is
        probably under development.</font></p>
    <p><font face="Helvetica, Arial, sans-serif">Best regards,</font></p>
    <p><font face="Helvetica, Arial, sans-serif">François</font><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05/03/2017 05:40 AM, Ralf Mardorf
      wrote:<br>
    </div>
    <blockquote cite="mid:20170503054020.491b7182@utnubu" type="cite">
      <pre wrap="">On Tue, 2 May 2017 16:24:27 +0200, François P. Rotzinger wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Sorry, I have sent the message below using the wrong account. Now, it 
should be OK.
-----------------------------------------------------------------------------------------------------------------------
Greetings,
After the installation of software or updates, the cache 
/var/cache/apt/archives is purged immediately. I tried without success 
to get information, which file in /etc/apt/apt.conf.d should be
modified or added... Could you please give me a hint, what to do to
keep the files in /var/cache/apt/archives?
Many thanks! Best regards,
François
</pre>
      </blockquote>
      <pre wrap="">
You did not say how you upgraded or installed software

By default "apt-get" behaves different, than "apt" does, you temporarily
could change the default by adding "-o <a class="moz-txt-link-freetext" href="APT::Keep-Downloaded-Packages=1">APT::Keep-Downloaded-Packages=1</a>"
or permanently change the behaviour by editing the apt settings. I
don't have at hand how to permanently edit the settings, Google is your
friend.

IOW running

sudo apt full-upgrade -o <a class="moz-txt-link-freetext" href="APT::Keep-Downloaded-Packages=1">APT::Keep-Downloaded-Packages=1</a>
sudo apt install -o <a class="moz-txt-link-freetext" href="APT::Keep-Downloaded-Packages=1">APT::Keep-Downloaded-Packages=1</a> <package>

does the same as

sudo apt-get dist-upgrade
sudo apt-get install <package>

Regards,
Ralf

</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
François P. Rotzinger
Chemin des Vignes 20
CH-1373 Chavornay</pre>
  </body>
</html>