blob: 9edf3c2ace8bd835e1b9ed3a8f7976a9d5ab9628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
. /usr/share/makepkg/util/message.sh && colorize
set -Eeo pipefail
LANG= xargs pacman -Qo 2> /dev/null | awk '
{
files[$5][i++] = $1;
}; END {
for (pkg in files) {
printf pkg;
for (i in files[pkg])
printf " %s", files[pkg][i];
print "";
}
}
' | while read -r package units; do
[[ ! "${nl}" ]] && nl=1 || echo
msg "${package}:"
for unit in "${units}"; do
msg2 "${unit##*/}"
done
done
|