configs/arch-config/scripts/pieces/packagers.sh

15 lines
235 B
Bash
Raw Permalink Normal View History

#!/bin/bash
pacman -Qi |
grep -P '^Pack(ag)?(e)?r' |
cut -d: -f2 |
sort |
uniq -c |
sort -n |
sed 's/^ *//;s/ /:/' |
awk -F: "{printf \"%5.1f%% \",\
100 * \$1 / $(pacman -Qq | wc -l);\
\$1=\"\" }1"
exit 0