Last active
October 11, 2022 13:08
-
-
Save jzbor/19dfb272fa64769552720f999b132829 to your computer and use it in GitHub Desktop.
Pacman hooks to clean old package cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/pacman.d/hooks/paccache_outdated.hook | |
[Trigger] | |
Operation = Upgrade | |
Operation = Install | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] | |
Description = Cleaning pacman cache (outdated versions) | |
When = PostTransaction | |
Exec = /usr/bin/paccache -rk3 | |
Depends = pacman-contrib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/pacman.d/hooks/paccache_uninstalled.hook | |
[Trigger] | |
Operation = Upgrade | |
Operation = Install | |
Operation = Remove | |
Type = Package | |
Target = * | |
[Action] | |
Description = Cleaning pacman cache (uninstalled packages) | |
When = PostTransaction | |
Exec = /usr/bin/paccache -ruk0 | |
Depends = pacman-contrib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment