2021-02-05 18:31:10 +00:00
|
|
|
#!/bin/sh --
|
|
|
|
# aur-remove - remove listed packages from all local repositories
|
|
|
|
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
|
|
printf 'usage: aur remove package [package ...]\n' >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-12-24 11:40:37 +00:00
|
|
|
aur repo --list-path | while read -r repo_path; do
|
2021-02-05 18:31:10 +00:00
|
|
|
repo-remove "$repo_path" "$@"
|
|
|
|
paccache -c "${repo_path%/*}" -rvk0 "$@"
|
|
|
|
done
|