Add script to list all packagers of system

This commit is contained in:
RealStickman 2020-11-20 15:15:53 +01:00
parent 843704f350
commit 1e8a0e9b4a

View File

@ -0,0 +1,14 @@
#!/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