You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
543 B

  1. #!/bin/sh
  2. #
  3. # Author: Yann Dirson <dirson@debian.org>
  4. # License: GPL
  5. datafile=/var/log/popularity-contest
  6. if [ ! -e $datafile ] ; then
  7. echo "warning: Missing required file $datafile."
  8. echo "info: Run 'popularity-contest > $datafile' to generate it."
  9. exit 1
  10. fi
  11. grep '<OLD>' $datafile | cut -d' ' -f3 |
  12. xargs -r apt-cache -o 'APT::Cache::AllVersions=0' show |
  13. grep -E '^(Package|Installed-Size): ' |
  14. perl -ne 'if (/^Package: (.*)/) { $p = $1 }; if (/^Installed-Size: (.*)/) { print "$1 $p\n"; $p = 'BUG' }' |
  15. sort -rn