restructure

This commit is contained in:
esche 2024-09-30 20:43:31 +02:00
parent 20cee1ae90
commit cd42c9128f
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,10 @@
[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'"

View file

@ -0,0 +1,11 @@
[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Keep the last cache of currently installed packages
When = PostTransaction
Exec = /usr/bin/paccache -r

View file

@ -0,0 +1,11 @@
[Trigger]
Operation = Remove
Operation = Install
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Delete cache of uninstalled packages
When = PostTransaction
Exec = /usr/bin/paccache -ruk1

View file

@ -0,0 +1,10 @@
[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'"