On Tue, Jan 14, 2020 at 02:59:25PM +0100, Vincent Lefevre wrote:
> Package: apt
> Version: 1.8.4
> Severity: normal
> I've installed some packages with "apt install ...", but the
> corresponding .deb files are missing from the /var/cache/apt/archives
> directory (contrary to packages installed via aptitude).
> This is either a bug or an undocumented behavior (both in the
> man pages and in /usr/share/doc/apt-doc/guide.text.gz). I also
> cannot see the reason of such a behavior: .deb packages are
> useful if one needs to revert to the previous version of a
> package.

It's a feature since 1.2 (see debian/NEWS).

If you installed the package, you don't need it anymore, and
it's not going to help you revert to an older version, because
it's the same version you just installed. Keeping it is

Compare that to autoclean which deletes precisely the
versions you'd be interested in keeping (the ones no
longer downloadable).

A more sensible approach for people who do want revert abilities,
would be to keep $N versions of each deb in the archive, where
$N might be 3.

> Perhaps that's the default option
>   Binary::apt::APT::Keep-Downloaded-Packages "0";
> below, but it is not documented.

I don't see why it needs documentation, apart from
the change in default being announced.

debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

Reply via email to