Added script to find files not owned by pacman package manager (ArchLinux)
[mirrors/Programs.git] / bash / pacorphans.sh
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
This page took 0.241193 seconds and 4 git commands to generate.