a50669790d9b38ed96f59eda6b3701146ced4f37
6 echo "[*] Saving list of files owned by pacman to $db ..." >&2
7 time /usr
/bin
/pacman
-Qlq |
sort -u > "$db"
9 echo "[*] Saving list of files in filesystem to $fs ..." >&2
10 time find /arch
/bin
/boot
/etc
/lib
/opt
/sbin
/usr
2>/dev
/null |
while read i
; do
11 if [ ! -d "$i" ]; then
14 done |
sort -u > "$fs"
16 echo "[*] Comparing db ( $db ) and fs ( $fs ) ..." >&2
17 time comm -23 "$fs" "$db" |
tee "$orphans"
20 echo "[!] List of files not owned by any package were saved to: $orphans" >&2
23 #cat "$orphans" | while read i; do pacman -Qo "$i" 2>&1; done | tee /tmp/orphantest.txt
This page took 0.270437 seconds and 3 git commands to generate.