Just so happens I am working on a script to do a similar thing for the 
LPIC course currently being undertaken at Granville TAFE.

rpm -qai | egrep "^Name|^Size" | sed "s/  */ /g" | awk 'BEGIN {FS=" "} \
    $1 == "Name" && $2 == ":" { printf ("%s: %-40s", $1, $3) } \
    $1 == "Size" && $2 == ":" { printf ("%s: %s\n", $1, $3) }' \
| sort -k 4 -n  > packlist

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to