[arch-general] pacman and hooks

Doug Newgard scimmia at archlinux.info
Tue Feb 2 23:54:10 UTC 2016


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.


More information about the arch-general mailing list