apt 1.2~exp1 came with the follow NEWS entry: [ Automatic removal of debs after install ] After packages are successfully installed by apt(8), the corresponding .deb package files will be removed from the /var/cache/apt/archives cache directory.
This can be changed by setting the apt configuration option "Binary::apt::APT::Keep-Downloaded-Packages" to "true". E.g: # 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 "APT::Keep-Downloaded-Packages" to false. If you have disabled this feature you can do manual maintenance with the `autoclean` and `clean` commands. More automatic maintenance can be achieved with our cronjob, see `/usr/lib/apt/apt.systemd.daily`for details, which can e.g. be configured to remove files after a few days as you seem to prefer here. As this default behavior is a deliberate choice and there are various options to change this I am closing this report as not a bug. ** Changed in: apt (Ubuntu) Status: New => Opinion -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1970110 Title: downloaded packages are removed just after installation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1970110/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs