From 221e5bdc8c00565d585f3dba098a31e76e6d200c Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Thu, 30 May 2013 13:11:13 -0400 Subject: [PATCH] add pacman-disowned --- pacman-disowned | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 pacman-disowned diff --git a/pacman-disowned b/pacman-disowned new file mode 100755 index 0000000..6c2d10e --- /dev/null +++ b/pacman-disowned @@ -0,0 +1,16 @@ +#!/bin/sh + +tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$ +db=$tmp/db +fs=$tmp/fs + +mkdir "$tmp" +trap 'rm -rf "$tmp"' EXIT + +pacman -Qlq | sort -u > "$db" + +find /bin /etc /lib /sbin /usr \ + ! -name lost+found \ + \( -type d -printf '%p/\n' -o -print \) | sort > "$fs" + +comm -23 "$fs" "$db" -- 2.51.2