Archlinux pacman hooks administrator with disabled exemples
With AUR :
yay -S pachook
or :
git clone https://github.com/papajoker/pachook.git
cd pachook
makepkg -si
pachook {command} "baseHookName"
cat
edit
create
enable or start
disable or stop