Including hooks to keep /var folder clean using paccache

Included hooks to delete old cache files from pacman, to avoid /var
folder to stay full
This commit is contained in:
Bruno F. Fontes 2019-06-10 10:21:41 -03:00
parent 4a915b7a39
commit 17944a0867
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Copy this file into /etc/pacman.d/hooks folder
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Bruno: Cleaning pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -r

View File

@ -0,0 +1,9 @@
# Copy this file into /etc/pacman.d/hooks folder
[Trigger]
Operation = Remove
Type = Package
Target = *
[Action]
Description = Bruno: Cleaning removed packages pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -ruk0