On 13/09/2025 19:50, Greg Wooledge wrote:
On Sat, Sep 13, 2025 at 12:26:44 +0700, Max Nikulin wrote:Is checked KeepDebs for apt-get above a typo?No. It's right there in the changelog entry that you cited:
My bad. I am sorry, Greg. I can not figured out why I decided that this row is inconsistent with others concerning apt vs. apt-get behavior in respect to removing of .deb files. Perhaps for me check marks should be inverted to have "positive" meaning:
✓ No need to run "apt-get clean" (or at least autoclean) to remove files I do not need (anyway I have apt-cacher-ng locally).
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 apt-get(8) I just have noticed another option. It took some time for me to realize that it is specific to auotoclean, not a negated variant of "Keep-Downloaded-Packages":
autoclean (and the auto-clean alias since 1.1) Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.