summaryrefslogtreecommitdiff
path: root/chcleanup
blob: d1c71c71161e70c6a24f1178a7420e7d19f53b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

[ ! -f ~/cleansystem ] && exit 1

packages=($(comm -23 <(pacman -Qq | sort) <(sort /etc/libretools.d/cleansystem)))

echo "Removing: ${packages[@]}"

sudo pacman --noconfirm -Rcs ${packages[@]}

exit $?