/usr/sbin/popcon-largest-unused is in popularity-contest 1.66ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
#
# Author: Yann Dirson <dirson@debian.org>
# License: GPL
datafile=/var/log/popularity-contest
if [ ! -e $datafile ] ; then
echo "warning: Missing required file $datafile."
echo "info: Run 'popularity-contest > $datafile' to generate it."
exit 1
fi
grep '<OLD>' $datafile | cut -d' ' -f3 |
xargs -r apt-cache -o 'APT::Cache::AllVersions=0' show |
grep -E '^(Package|Installed-Size): ' |
perl -ne 'if (/^Package: (.*)/) { $p = $1 }; if (/^Installed-Size: (.*)/) { print "$1 $p\n"; $p = 'BUG' }' |
sort -rn
|