diff --git a/modules/pacman/functions/pacdisowned b/modules/pacman/functions/pacman-list-disowned similarity index 62% rename from modules/pacman/functions/pacdisowned rename to modules/pacman/functions/pacman-list-disowned index 81edf0ac..fdf72887 100644 --- a/modules/pacman/functions/pacdisowned +++ b/modules/pacman/functions/pacman-list-disowned @@ -1,19 +1,19 @@ # -# Lists pacman disowned files. +# Lists Pacman disowned files. # # Authors: # Benjamin Boudreau # Sorin Ionescu # -tmp="${TMPDIR-/tmp}/pacman-disowned-$UID-$$" -db="$tmp/db" -fs="$tmp/fs" +local tmp="${TMPDIR-/tmp}/pacman-disowned-$UID-$$" +local db="$tmp/db" +local fs="$tmp/fs" mkdir "$tmp" trap 'rm -rf "$tmp"' EXIT -pacman -Qlq | sort -u > "$db" +pacman --quiet --query --list | sort --unique > "$db" find /bin /etc /lib /sbin /usr \ ! -name lost+found \ diff --git a/modules/pacman/functions/paclist b/modules/pacman/functions/pacman-list-explicit similarity index 60% rename from modules/pacman/functions/paclist rename to modules/pacman/functions/pacman-list-explicit index 3f83dc8b..a61eb944 100644 --- a/modules/pacman/functions/paclist +++ b/modules/pacman/functions/pacman-list-explicit @@ -1,11 +1,11 @@ # -# Lists explicitly installed pacman packages. +# Lists explicitly installed Pacman packages. # # Authors: # Benjamin Boudreau # Sorin Ionescu # -sudo pacman -Qei $(pacman -Qu|cut -d" " -f 1) \ +sudo pacman --query --explicit --info $(pacman --query --upgrades | cut -d' ' -f 1) \ | awk ' BEGIN {FS=":"}/^Name/{printf("\033[1;36m%s\033[1;37m", $2)}/^Description/{print $2}'