X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ed8a19ea1f44d79daec2b5a40f1f6e064fdbb309..4ff0cc66421194a13fa39742598527cf36c3fa98:/bin/aur-remove diff --git a/bin/aur-remove b/bin/aur-remove new file mode 100755 index 0000000..3885a05 --- /dev/null +++ b/bin/aur-remove @@ -0,0 +1,13 @@ +#!/bin/sh -- +# aur-remove - remove listed packages from all local repositories +# Taken from "man aur' + +if [ "$#" -eq 0 ]; then + printf 'usage: aur remove package [package ...]\n' >&2 + exit 1 +fi + +aur repo --list-path | while read -r repo_path; do + repo-remove "$repo_path" "$@" + paccache -c "${repo_path%/*}" -rvk0 "$@" +done