Commit | Line | Data |
---|---|---|
8d2f5c9a H |
1 | #!/bin/bash |
2 | time /usr/bin/pacman -Ql | cut -d ' ' -f 2- | sort -u > db.txt | |
3 | time find /arch /bin /boot /etc /lib /opt /sbin /usr 2>/dev/null | while read i; do | |
4 | if [ ! -d "$i" ]; then | |
5 | echo "$i" | |
6 | fi; | |
7 | done | sort -u > fs.txt | |
8 | time comm -23 fs.txt db.txt > non-db.txt | |
9 | ||
10 | #test it: | |
11 | #cat non-db.txt | while read i; do pacman -Qo "$i" 2>&1; done | tee test.txt |