Arch-Config/etc/pacman.d/hooks/unneeded.hook
2024-09-30 20:43:31 +02:00

10 lines
317 B
Text

[Trigger]
Operation = Remove
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Possibly unneeded packages (e.g. dependency cycles)
When = PostTransaction
Exec = /usr/bin/bash -c "(pacman -Qqd | pacman -Rsup - && echo 'uninstall all with »pacman -Qqd | pacman -Rsu -«') || echo '==> None found'"