Bug#1109196: apt: provide a way to automatically mark 'auto' all packages that don't need to stay manual

Lucas Nussbaum <[email protected]>
Newsgroups gmane.linux.debian.apt.devel
Message-ID <175240016981.360051.13907307312534100695.reportbug__39279.0400002681$1752400282$gmane$org@grub.nussbaum.fr>
Package: apt
Version: 3.0.3
Severity: wishlist
Tags: patch

Hi,

When cleaning up cruft in a system, I used to use debfoster, which is
nice because it allows me to get a short list of packages that are
really the ones I want to keep, excluding all packages that are
dependencies (or installed for other reasons).

I understand apt-mark manual/auto is the new way to solve this, but I'm
missing a tool that analyzes my system and provides a list of packages
that can safely be marked 'auto'.

'apt-mark minimize-manual' doesn't really do that, because it only looks at
dependencies of meta packages.

I wrote a POC (using AI) to demonstrate what I mean:
https://salsa.debian.org/lucas/apt-suggest-auto

But I wonder if you would consider adding similar functionality in apt
directly (typically by replacing the current implementation in apt-mark
minimize-manual, or adding another subcommand).

Best

Lucas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.