User talk:Kale-ru
Latest comment: 26 March 2016 by Kynikos in topic Pacman hooks
Pacman hooks
Sorry about the revert having no comment.
As far as I can tell from the documentation/source code, hooks are only run from /usr/share/libalpm/hooks
, unless the user has added additional hook dirs in /etc/pacman.conf
(or uncommented the default example entry of /etc/pacman.d/hooks
).
-- Pypi (talk) 18:24, 23 March 2016 (UTC)
- There are two sources on which I can rely
- 1.
- man pacman
- --hookdir <dir>
- Specify a alternative directory containing hook files (a typical
- default is /etc/pacman.d/hooks). Multiple hook directories can be
- specified with hooks in later directories taking precedence over
- hooks in earlier directories. NOTE: This is an absolute path, and
- the root path is not automatically prepended.
- also
- 2.
- https://wiki.archlinux.org/index.php/User:Allan/Pacman_Hooks
- pacman maintainers Allan McRae <allan@archlinux.org>
- Hooks
- Hook files are placed in /usr/lib/pacman/hooks or /etc/pacman.d/hooks. Those in /etc override those in /usr/lib. An empty file or :a symlink to /dev/null in /etc disables the hook in /usr/lib.
- Kale-ru (via email, copied here by Pypi (talk) 19:17, 25 March 2016 (UTC))
- I was looking at similar sources, but it appears that I was misunderstanding: [1] falls back to HOOKDIR if nothing is given, which is defined in [2]; the system hook dir is defined [3], and is added initially at [4].
- I'm going to reword your edit, thanks - feel free to change it if you still think that it is unclear. -- Pypi (talk) 21:11, 25 March 2016 (UTC)
- Fixed with [5] -- Pypi (talk) 21:13, 25 March 2016 (UTC)
- Thank you, however the man page is indeed confusing in my view, so I've submitted a patch, FS#48696. — Kynikos (talk) 03:00, 26 March 2016 (UTC)