mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 23:40:51 +00:00
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:
parent
4a915b7a39
commit
17944a0867
11
Pacman/clean_package_cache.hook
Normal file
11
Pacman/clean_package_cache.hook
Normal 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
|
9
Pacman/clean_uninstalled_packages.hooks
Normal file
9
Pacman/clean_uninstalled_packages.hooks
Normal 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
|
Loading…
Reference in New Issue
Block a user