mirror of the now-defunct rocklinux.org
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.

22 lines
438 B

  1. #!/bin/bash
  2. if [ $1 ] ; then
  3. case $1 in
  4. -help)
  5. echo "Useage: $0 [ -path <part of a path> ]"
  6. exit 1;
  7. ;;
  8. -path)
  9. FLISTGREP="$2";
  10. shift; shift;
  11. ;;
  12. esac
  13. fi
  14. if [ -n "$FLISTGREP" ] ; then
  15. FILES=`grep -l -- "$FLISTGREP" /var/adm/flists/* | sed -e 's,^/var/adm/flists,/var/adm/packages,'`
  16. else
  17. FILES=`ls /var/adm/packages/*`
  18. fi
  19. grep '^Package Size: ' $FILES | sed -e 's,^.*/\(.*\):Package Size: \(.*\) MB.*,\2 \1,' | sort -n