blob: 5a1ed198e1af50a7a90a0e02f195cfe7204f8c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Archlinux system installation and compare
# vim: ft=sh
archlinux_inst() {
# Check if we are on archlinux
if ! [ -e /etc/arch-release ]; then
echo Archlinux not detected! >&2
return
fi
# Now check for pacaur and optionally install
if ! pacaur --version 2>&1 >/dev/null; then
echo Please install pacaur! >&2
return
fi
TFILE1=$(mktemp myconfigs-pacaur1-XXXXX)
grep -E '^[^# ]+$' archlinux.pkgs | sort > "$TFILE1"
TFILE2=$(mktemp myconfigs-pacaur2-XXXXX)
pacaur -Qqet | sort > "$TFILE2"
diff --suppress-common-lines -ay "$TFILE1" "$TFILE2"
rm "$TFILE1" "$TFILE2"
}
|