Doug Newgard writes:
On Tue, 02 Feb 2016 23:51:16 +0100 Magnus Therning <magnus@therning.org> wrote:
Doug Newgard writes:
On Tue, 02 Feb 2016 23:25:58 +0100 Magnus Therning <magnus@therning.org> wrote:
Stefan Tatschner writes:
On 01.02.2016 23:05, Magnus Therning wrote:
Is there more information about this feature available somewhere?
$ man 5 alpm-hooks
Excellent. I also found this https://github.com/andrewgregory/pachooks.
I'm guessing that link contains one erroneos bit of information though, the location of the hooks. Since `pacman` includes the dir `/usr/share/libalpm/hooks/` I'm guessing that's where hooks should go, right? (It could be a nice touch to put a README file there ;)
/M
That's where packages should put hooks, not users/admins.
Ah, so admins should put site-specific hooks in the locations mentioned in at the link above?
/M
No, even those are for packages. Users/admins should use /etc/pacman.d/hooks. Not sure about scripts.
Ah, I just now found a mention of the default hook dir, it's in pacman.conf(5)! I must admit I was surprised to *not* find it mentioned in alpm-hooks(5). As far as I understand it |--------------------------+---------------------------------------------| | /usr/share/libalpm/hooks | system dir, used by packages | |--------------------------+---------------------------------------------| | /etc/pacman.d/hooks | suggested dir for use by local stuff, needs | | | to be configured in /etc/pacman.conf | |--------------------------+---------------------------------------------| Is that correct? /M -- Magnus Therning OpenPGP: 0x927912051716CE39 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus As we enjoy great advantages from the inventions of others we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously. -- Benjamin Franklin