• MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    5 hours ago

    Pacman hooks install to /usr/share/libalpm/hooks (and sometimes to /etc/pacman.d/hooks though that’s incorrect).

    Incorrect, for the package i guess, because there are the users hooks?

    • emotional_soup_88@programming.devOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      4 hours ago

      Good question. I haven’t used custom hooks myself, but I believe you are correct. The alpm (Arch Linux Package Management) hooks manual states:

      Hooks are read from files located in the system hook directory /usr/share/libalpm/hooks, and additional custom directories specified in pacman.conf(5) (the default is /etc/pacman.d/hooks).

      So I guess the blog post means to say, that hooks are not supposed to be added automatically at installation of a package.