ALPM-HOOKS(5) Pacman ALPM-HOOKS(5) (NAME) alpm-hooks - alpm (SYNOPSIS) [Trigger] ( ) Operation = Install|Upgrade|Remove ( ) Type = Path|Package () Target = ( ) [Action] () Description = ... () When = PreTransaction|PostTransaction () Exec = () Depends = () AbortOnFail ( PreTransaction) NeedsTargets () (DESCRIPTION) libalpm / . [Action] [Trigger] . /usr/share/libalpm/hooks pacman.conf(5) ( /etc/pacman.d/hooks ) . <<.hook>> . . (TRIGGERS) [Trigger] . . Operation = Install|Upgrade|Remove . . . Path . . Type = Path|Package . Path (CAVEATS) . File Path . . Target = . . (glob) . . . . (ACTIONS) Description = ... . Exec = . . . . When = PreTransaction|PostTransaction . . Depends = . . AbortOnFail . PreTransaction . NeedsTargets stdin . (OVERRIDING HOOKS) . /dev/null . (EXAMPLES) # Force disks to sync to reduce the risk of data corruption [Trigger] Operation = Install Operation = Upgrade Operation = Remove Type = Package Target = * [Action] Depends = coreutils When = PostTransaction Exec = /usr/bin/sync (CAVEATS) . . .pacnew . . PostTransaction . pacman pacman https://archlinux.org/pacman . (BUGS) . https://gitlab.archlinux.org/pacman/pacman/-/issues . (AUTHORS) : o Allan McRae o Andrew Gregory o Morgan Adamiec : o Judd Vinet o Aurelien Foret o Aaron Griffin o Dan McGee o Xavier Chantry o Nagy Gabor o Dave Reisner o Eli Schwartz git shortlog -s pacman.git . Pacman 7.1.0 2026-05-06 ALPM-HOOKS(5)