blob: efb12f709f4fb3f7d510c34bc0e7de51f0bd2008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Get list of ignored pkgs
ignored() {
pkgs="$(grep IgnorePkg /etc/pacman.conf | sed -e 's/IgnorePkg =//' -e 's/#.*//')"
grps="$(grep IgnoreGroup /etc/pacman.conf | sed -e 's/IgnoreGroup =//' -e 's/#.*//')"
[ -n "$grps" ] && pkgs="$pkgs $(pacman -Sgq "$grps")"
echo -n "$pkgs" | tail -n -1
}
# Return only AUR pkgs
for pkg in $(ignored)
do
pacman -Si "$pkg" >/dev/null 2>&1 || echo "$pkg"
done
|