Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / sbin / | server ip : 104.21.89.46 your ip : 172.69.58.111 H O M E |
Filename | /usr/sbin/popcon-largest-unused |
Size | 543 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 13-May-2013 18:06 |
Last accessed | 05-Jul-2025 15:50 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# Author: Yann Dirson <[email protected]>
# 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
#
# Author: Yann Dirson <[email protected]>
# 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