remove all cached packages

This commit is contained in:
Tobias Powalowski 2024-06-15 13:04:09 +02:00
parent 96e110d489
commit adcc63d5f3

View file

@ -16,7 +16,7 @@ _cleanup() {
# remove packages from cache
#shellcheck disable=SC2013
for i in $(grep -w -E 'reinstalled|installed|upgraded' /var/log/pacman.log | cut -d ' ' -f 4); do
rm -rf "${_CACHEDIR}/${i}"-[0-9]*
rm -rf "${_CACHEDIR}/${i}"-*
done
}