Add script to list all packagers of system
This commit is contained in:
parent
843704f350
commit
1e8a0e9b4a
14
arch-config/scripts/packagers.sh
Executable file
14
arch-config/scripts/packagers.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user