[Aptitude-devel] Bug#712957: full suffix not revealed by -s autoclean

jidanni at jidanni.org jidanni at jidanni.org
Fri Jun 21 08:56:46 UTC 2013


Package: aptitude
Version: 0.6.9.1-1

Aptitude -s autoclean does not reveal the full details of the files it
plans to delete.

Only it knows the exact names.

If one wants to post process that list, say to only remove files older
than a week, one must cross ones fingers that one has guessed the right
file that Aptitude was thinking about, because the full suffix is not
revealed by Aptitude.

$ aptitude -s autoclean > /tmp/e
$ perl -nawle 'next unless $F[0] eq "Del"; print "echo ===== $_; ls $F[1]_$F[2]*"' /tmp/e|sh
===== Del gvfs-libs 1.16.2-2+b1 [279 kB]
gvfs-libs_1.16.2-2+b1_i386.deb
===== Del libglib2.0-data 2.36.3-1 [1,845 kB]
libglib2.0-data_2.36.3-1_all.deb
===== Del gvfs 1.16.2-2+b1 [281 kB]
gvfs_1.16.2-2+b1_i386.deb
===== Del xfce4-settings 4.10.1-1 [673 kB]
xfce4-settings_4.10.1-1_i386.deb
===== Del gvfs-daemons 1.16.2-2+b1 [300 kB]
gvfs-daemons_1.16.2-2+b1_i386.deb
===== Del libglib2.0-0 2.36.3-1 [2,035 kB]
libglib2.0-0_2.36.3-1_i386.deb
===== Del gvfs-common 1.16.2-2 [672 kB]
gvfs-common_1.16.2-2_all.deb
===== Del qtchooser 31-g980c64c-3 [17.8 kB]
qtchooser_31-g980c64c-3_i386.deb



More information about the Aptitude-devel mailing list