You are not logged in.
Pages: 1
Is there a way to have pacman run a custom post-installation hook on package whenever it is updated?
Last edited by kormpu (2020-12-25 15:32:12)
Offline
https://wiki.archlinux.org/index.php/Pacman#Hooks
https://jlk.fjfi.cvut.cz/arch/manpages/man/alpm-hooks.5
$ man 5 alpm-hooks
Last edited by icar (2020-12-25 02:30:57)
Offline
I have a hook for starting paccache after upgrading and installing packages like this:
$ cat /etc/pacman.d/hooks/paccache.hook
[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = *
[Action]
Description = Cleaning pacman cache
When = PostTransaction
Exec = /sbin/paccache -rk3
Offline
Pages: 1