1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
dotfiles/scripts/pkgdiff

13 lines
288 B
Plaintext
Raw Permalink Normal View History

2016-05-21 12:47:28 +00:00
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "Gives a diff of package lists and currently installed packages"
echo "Usage: $(basename ${BASH_SOURCE[0]}) list1 [list2] [list3]"
exit 1
fi
dir=$(dirname ${BASH_SOURCE[0]})
diff <(cat $@ | sort | uniq -u) <($dir/listpackages)