9 May
2008
9 May
'08
12:46 a.m.
Dan McGee wrote:
The magic:
pkglist=$(mktemp) pacman -Sl $1 > $pkglist
pacman -Q | while read pkg; do ret=0 grep -q "$pkg" $pkglist || ret=$? if [ $ret -eq 0 ]; then echo $pkg fi done
rm $pkglist
Nice! I will submit the patch which adds this script to contrib later today. Cheers, Allan