These past few days when apt and its coworkers were updated, apt by default deletes cached packages after the installation. So if you were used to keep the cached pkgs so you can reinstall without redownloading, or sharing your cache with other installations, or using a common cache in a network to save bandwidth, DO NOT USE APT, USE APT-GET. Either apt upgrade, apt dist-upgrade (which in the past few months had become identical to apt-get dist-upgrade), or apt install, all remove cached packages. The hunt for a configuration to change the new default did not bare any fruits, or it would have been noted here. Check this antiX thread. The chief developer of Anti-X did not know about it either.
Using apt-get instead in all above mentioned combinations keeps downloaded packages in /var/cache/apt/archives like apt used to for years.
If you find any news or links to why and how this was changed please let us all know by commenting below.
Update 1: Oct 16th-2018
I found this in an ubuntu site and it is old. This indicates that this file existed in my system since installation (about 4 different ones) and must have been removed by an update, otherwise I can’t explain the sudden change.
[ Automatic removal of debs after install ] After packages are successfully installed by
apt(8), the corresponding
.debpackage files will be removed from the
This can be changed by setting the apt configuration option
# 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
According to this and my past years experience this file (01lkeep-debs) must have been there and was removed, not by me or alerting me of such change. Unless there is a better explanation, this is the only sense I make out of it.
Classic Debian crap, devs decide to wipe settings and configurations off your installation and then if asked they sarcastically respond by “you should have read release notes before installing”, like anyone does this for 100pkgs a week.