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

#!/bin/bash
if [ $1 ] ; then
case $1 in
-help)
echo "Useage: $0 [ -path <part of a path> ]"
exit 1;
;;
-path)
FLISTGREP="$2";
shift; shift;
;;
esac
fi
if [ -n "$FLISTGREP" ] ; then
FILES=`grep -l -- "$FLISTGREP" /var/adm/flists/* | sed -e 's,^/var/adm/flists,/var/adm/packages,'`
else
FILES=`ls /var/adm/packages/*`
fi
grep '^Package Size: ' $FILES | sed -e 's,^.*/\(.*\):Package Size: \(.*\) MB.*,\2 \1,' | sort -n