diff --git a/Pacman/clean_package_cache.hook b/Pacman/clean_package_cache.hook new file mode 100644 index 0000000..5d0394d --- /dev/null +++ b/Pacman/clean_package_cache.hook @@ -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 diff --git a/Pacman/clean_uninstalled_packages.hooks b/Pacman/clean_uninstalled_packages.hooks new file mode 100644 index 0000000..e69c2a5 --- /dev/null +++ b/Pacman/clean_uninstalled_packages.hooks @@ -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