Arch-Config/orphans.hook
2023-03-23 15:33:41 +01:00

11 lines
410 B
Text

[Trigger]
Operation = Remove
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = List orphans
When = PostTransaction
Exec = /usr/bin/bash -c "(pacman -Qtd && echo 'uninstall all with »pacman -Qtdq | pacman -Rs -«') || echo '==> None found'"
#Exec = /usr/bin/bash -c "(/usr/bin/pacman -Qtd && /usr/bin/echo 'uninstall all with »yay -Qtdq | yay -Rns -«') || /usr/bin/echo '==> None found'"