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

Re: why autoremove doesn't work



On Sun 14 Nov 2021 at 00:05:24 (+0000), Long Wind wrote:
> Thanks, i can't understand why autoremove doesn't work,
> from user's point of view, it's easy to implement
> let's examine 1st package

>  aptitude why libperl5.32
> i   aptitude               Recommends libdpkg-perl
> i A libdpkg-perl           Recommends libfile-fcntllock-perl
> i A libfile-fcntllock-perl Depends    perl (>= 5.32.0-4)
> i A perl                   Depends    libperl5.32 (= 5.32.1-4+deb11u2) 

Which is exactly what I said: there's a package that you had already
installed (aptitude), whose Recommends includes a chain that extends
to libperl5.32.

Would I be correct in assuming that you originally installed aptitude
/without/ Recommends, and installed synaptic /with/ Recommends?
AFAIK, APT makes no attempt to track that difference.

>  apt-get -s remove libperl5.32

So you've decided to break that chain.

[ … ]
> The following packages were automatically installed and are no longer required:
>   gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0
>   gir1.2-gtk-3.0 gir1.2-harfbuzz-0.0 gir1.2-pango-1.0 libgdbm-compat4
>   libgirepository-1.0-1 libpangoxft-1.0-0 perl-modules-5.32
>   perl-openssl-defaults

So that's 12 more that will drop out later,

> The following packages will be REMOVED:
>   libauthen-sasl-perl libcairo-gobject-perl libcairo-perl libclone-perl
>   [ … ]
>   libxml-twig-perl libxml-xpathengine-perl perl pkg-config
> 0 upgraded, 0 newly installed, 52 to remove and 27 not upgraded.

and 52 being removed now, so that leaves 73 - 52 - 12 = 9 packages
still left in. So if you do remove those, you might be able to look at
the others in your "why" list and see what's keeping them in, thought
bear in mind that each "why" response is composed of a single chain,
the composition of which might change because of the packages just
removed. (That is why there will be 12 candidates for autoremoval:
removal of those 52 packages will destroy 12 chains.)

I can't speak to the 27 upgrade candidates, but I assume they're there
because you're deferring any ungrade until you've cleared out the
synaptic detritus.)

Cheers,
David.


Reply to: