[arch-general] pacman and hooks
Andrew Gregory
andrew.gregory.8 at gmail.com
Wed Feb 3 02:00:13 UTC 2016
On 02/02/16 at 08:43pm, Eli Schwartz wrote:
> On 02/02/2016 06:54 PM, Doug Newgard wrote:
> > No, even those are for packages. Users/admins should use /etc/pacman.d/hooks.
> > Not sure about scripts.
>
> I would guess that scripts can be put anywhere, I would probably just
> put them in the HookDir (matching *.{hook,sh} files).
>
> But why would anyone use the /usr/share/alpm/hooks.local directory at
> all? It doesn't appear to be used by default -- I guess you could add a
> HookDir in pacman.conf, but that shouldn't be depended on by packages...
>
> It looks like a *personal* choice for user/admin hooks.
Neither hooks.bin nor hooks.local are used by alpm/pacman in any way.
They are merely my own personal suggestions for where packages should
put scripts and inactive hooks. The intent for hooks.local is for
packages to place any hooks that shouldn't be automatically enabled
there, then for users to selectively enable them by symlinking them
into /etc/pacman.d/hooks.
apg
More information about the arch-general
mailing list