added a custom hooks section with mandb-update.hook file and instructions for installation

This commit is contained in:
tomit4 2022-03-16 12:53:14 -07:00
parent 955abb2a98
commit 3c73e64b94
2 changed files with 20 additions and 0 deletions

9
custom_hooks/install.txt Normal file
View file

@ -0,0 +1,9 @@
This is a simple pacman hook that will update the mandb (the database of man pages) whenever you update.
It was taken from this Artix form post:
https://forum.artixlinux.org/index.php/topic,1080.0.html
very simply:
doas cp mandb-update.hook /usr/share/libalpm/hooks

View file

@ -0,0 +1,11 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/man/*
[Action]
Description = Updating manpage index cache...
When = PostTransaction
Exec = /usr/bin/mandb --quiet