[arch-general] pacman and hooks

Magnus Therning magnus at therning.org
Wed Feb 3 12:30:01 UTC 2016


Doug Newgard writes:

> On Tue, 02 Feb 2016 23:51:16 +0100
> Magnus Therning <magnus at therning.org> wrote:
>
>> Doug Newgard writes:
>> 
>> > On Tue, 02 Feb 2016 23:25:58 +0100
>> > Magnus Therning <magnus at 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 at therning.org   jabber: magnus at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20160203/333cb876/attachment.asc>


More information about the arch-general mailing list