Add files via upload
This commit is contained in:
parent
18463bcc35
commit
ce78fb1d01
4 changed files with 42 additions and 0 deletions
10
orphans.hook
Normal file
10
orphans.hook
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Trigger]
|
||||||
|
Operation = Remove
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = Package
|
||||||
|
Target = *
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = List orphans
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/bash -c "(/usr/bin/pacman -Qtd && /usr/bin/echo 'uninstall all with »yay -Qtdq | yay -Rns -«') || /usr/bin/echo '==> None found'"
|
11
paccache.hook
Normal file
11
paccache.hook
Normal 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
|
11
paccache2.hook
Normal file
11
paccache2.hook
Normal 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
|
10
unneeded.hook
Normal file
10
unneeded.hook
Normal 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 - && /usr/bin/echo 'uninstall all with »pacman -Qqd | pacman -Rsu -«') || /usr/bin/echo '==> None found'"
|
Loading…
Reference in a new issue