Post-Invoke
またはと呼ばれる3つの異なるフックがありPost-Invoke-Success
、すべてapt
ツールによって管理されます。
DPkg::Post-Invoke
、dpkg
(apt
手動ではなくツールによって)を実行するたびに呼び出されます。APT::Update::Post-Invoke-Success
, which is invoked after successful updates (i.e. package information updates, not upgrades);APT::Update::Post-Invoke
, which is invoked after updates, successful or otherwise (after the previous hook in the former case).These are handled respectively in apt-pkg/deb/dpkgpm.cc
, line 1509 and apt-pkg/update.cc
, lines 111 and 114. There is no DPkg::Post-Invoke-Success
hook that I can find.
If you want to add a hook to all dpkg
invocations, you should look at the post-invoke
hook in /etc/dpkg/dpkg.cfg
, which is equivalent to DPkg::Post-Invoke
above but is applied in all cases, not just apt
-based executions of dpkg
. To see examples of all the apt
configuration options, look at /usr/share/doc/apt/examples/configure-index.gz
.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加