Created
September 24, 2016 02:26
-
-
Save crdueck/685b7bd3ad1b91d02bbd744955a30b2e to your computer and use it in GitHub Desktop.
pacman-disowned
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 /etc /opt /usr ! -name lost+found \( -type d -printf '%p/\n' -o -print \) | sort > "$fs" | |
comm -23 "$fs" "$db" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment