[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#959093: command to delete downloaded package lists and package cache, for container building



Control: tags -1 = newcomer

Hi,

On Wed, Apr 29, 2020 at 12:01:27PM +0200, Simon Richter wrote:
> It would be nice if there was a command to remove the downloaded lists and
> the indexes (although the latter can also be removed by just dropping all
> files below /var/cache, which would be allowed in any case).

"apt clean" already deals with clearing /var/cache/apt and even
lists/partial, so it shouldn't be too hard to add a related command
which cleans up lists/ (as well).

For mild security benefits I would recommend keeping the Release files
(either InRelease or Release) around though (Signed-By, metadata
changes, downgrade attacks, …).

The hardest part might be coming up with a name for the command,
I guess "distclean" would be kinda appropriate, even through it
reuses "dist" which we have in "dist-upgrade" with a slightly
different meaning – but that name is deprecated.


It does come up once in a while, so this is definitely a feature some
people would enjoy, but nobody tried to implement it so far and as
I think this is a good opportunity for someone currently not involved
with APT to get their feet wet I am tagging it 'newcomer' and happily
await patches/merge requests.

If someone is interested and/or has a question (of any kind) feel free
to drop a line here, on our mailinglist deity@lists.debian.org and/or
on IRC in #debian-apt.


Best regards

David Kalnischkies

P.S.: Dropping the "upstream" tag as there is hardly any bugreport for
apt which could not be tagged upstream. We are upstream after all…

Attachment: signature.asc
Description: PGP signature


Reply to: