Tianyu Chen <[email protected]> 于2025年8月12日周二 10:35写道: > Actually I don't think I've purged libglib2.0-0:amd64 when testing > bookworm->trixie upgrading. But the steps you provided on > debian:bookworm-slim are correct. > Let me reproduce it again to see the difference later..
I think i've actually done something like apt autoremove --purge so libglib2.0-0:amd64 got purged first. Simon McVittie <[email protected]> 于2025年8月13日周三 00:00写道: > > On Tue, 12 Aug 2025 at 16:51:54 +0200, Guillem Jover wrote: > >dpkg will automatically turn a remove into a purge if the package > >has no conffile and no postrm: > > > > https://git.dpkg.org/cgit/dpkg/dpkg.git/tree/src/main/remove.c#n639 > > Thanks, I wondered whether something like that might have happened. > libglib2.0-0 doesn't have any conffiles, so the postrm is indeed the only > reason to distinguish between remove and purge. I think dpkg can still tell remove or purge from /var/lib/dpkg/status. $ ls /var/lib/dpkg/status/libglib2.0-0:amd64* /var/lib/dpkg/status/libglib2.0-0:amd64.list $ cat /var/lib/dpkg/status/libglib2.0-0:amd64.list $ grep-status -XP libglib2.0-0 -a -XF Architecture: amd64 -s Status Status: deinstall ok config-files $ dpkg -l | grep libglib2.0-0:amd64 rc libglib2.0-0:amd64 2.74.6-2+deb12u6 amd64 GLib library of C routines Best regards, Tianyu

