summaryrefslogtreecommitdiff
path: root/chcleanup
blob: 83c9f3f619ce849d2d513b970043d97bbbbc6fdb (plain)
1
2
3
4
5
6
7
#!/bin/bash

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

sudo pacman --noconfirm -Rcs $(comm -23 <(pacman -Qq | sort) <(sort ~/cleansystem))

exit $?