Can I prevent Pacman from running hooks?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Arch Community,

I have scripts that will install a set of arch linux machines for me
with all the tweaks I want. These scripts run pacman a lot to install
bits and pieces. Usually the script will running pacman to install one
package and then configure that package and then proceed to install
the next (set of) packages. This works great, but  a noticeable part
of the run time is spent on running pacman hooks (e.g. to update the
man-db and similar things).

So I am wondering: Is it possible to stop pacman from running hooks
during package installation? I do know when it is "safe" to not run
hooks (when the system is not complete yet) and when I need to run all
of them (right after the system has all packages installed that it
will have).

So far I run pacman with a --hookdir that contains symlinks to
/dev/null named like some of the more expensive hooks that tend to
take long to complete. But a --no-hooks option to pacman would be
great for my use case.

Is it possible to run pacman without it triggering hooks?

Best Regards,
Tobias



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux