[Trigger] (Required, Repeatable) Operation = Install|Upgrade|Remove (Required, Repeatable) Type = File|Package (Required) Target = <Path|PkgName> (Required, Repeatable) [Action] (Required) Description = ... (Optional) When = PreTransaction|PostTransaction (Required) Exec = <Command> (Required) Depends = <PkgName> (Optional) AbortOnFail (Optional, PreTransaction only) NeedsTargets (Optional)pacman.conf(5) (the default is /usr/local/etc/pacman.d/hooks). The file names are required to have the suffix ".hook". Hooks are run in alphabetical order of their file name, where the ordering ignores the suffix.
Select the type of operation to match targets against. May be specified multiple times. Installations are considered an upgrade if the package or file is already present on the system regardless of whether the new package version is actually greater than the currently installed version. For File triggers, this is true even if the file changes ownership from one package to another. Required.Type = File|Package
Select whether targets are matched against transaction packages or files. See CAVEATS for special notes regarding File triggers. Required.Target = <path|package>
The file path or package name to match against the active transaction. File paths refer to the files in the package archive; the installation root should not be included in the path. Shell-style glob patterns are allowed. It is possible to invert matches by prepending a file with an exclamation mark. May be specified multiple times. Required.
An optional description that describes the action being taken by the hook for use in front-end output.Exec = <command>
Command to run. Command arguments are split on whitespace. Values containing whitespace should be enclosed in quotes. Required.When = PreTransaction|PostTransaction
When to run the hook. Required.Depends = <package>
Packages that must be installed for the hook to run. May be specified multiple times.AbortOnFail
Causes the transaction to be aborted if the hook exits non-zero. Only applies to PreTransaction hooks.NeedsTargets
Causes the list of matched trigger targets to be passed to the running hook on stdin.
# 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
•Allan McRae <firstname.lastname@example.org>
•Andrew Gregory <email@example.com>
•Dan McGee <firstname.lastname@example.org>
•Dave Reisner <email@example.com>Past major contributors:
•Judd Vinet <firstname.lastname@example.org>
•Aurelien Foret <email@example.com>
•Aaron Griffin <firstname.lastname@example.org>
•Xavier Chantry <email@example.com>
•Nagy Gabor <firstname.lastname@example.org>For additional contributors, use git shortlog -s on the pacman.git repository.