No Description
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.

packsize.sh 225B

123456
  1. #!/bin/bash
  2. ( echo "PACKAGE SIZE(K)";
  3. for A in /var/lib/pacman/local/*/desc; do
  4. egrep -A1 '%(NAME|SIZE)' $A \
  5. | gawk '/^[a-z]/ { printf "%s ", $1 }; /^[0-9]/ { printf "%.0f\n", $1/1024 }'
  6. done | sort -nrk2 ) | column -t